Andrew Trick
894be3703f
Fix UnsafeBufferPointer validation test. ( #5021 )
...
There are several checks related to accessing a slice of an
UnsafeBufferPointer. Which tests are active depend on the level of
optimization. A raw buffer's checks are also stricter in some cases.
This test was originally designed to either crash or not for each input range
without regard to the nuances of when bounds checks are enabled. When an input
range was marked as crashing, that forced the test case to crash which was
self-fullfilling--nothing was really being tested in that case.
In my previous checkin, I enabled crash checking to be effective but missed some
of the nuances of different bounds checking modes. This commit adds logic to the test
to account for these nuances.
2016-09-26 17:31:09 -07:00
..
2016-09-02 21:36:45 -07:00
2016-09-10 20:05:42 -07:00
2016-09-22 16:28:57 +02:00
2016-09-22 16:31:33 -07:00
2016-07-26 03:10:52 -07:00
2016-07-25 06:40:37 -07:00
2016-08-07 14:20:36 -07:00
2016-09-25 19:56:21 -07:00
2016-09-15 08:49:42 +02:00
2016-09-01 16:51:07 -07:00
2016-07-22 14:56:39 -07:00
2016-09-19 21:46:25 -07:00
2016-08-17 13:45:06 -07:00
2016-09-10 20:05:43 -07:00
2016-09-18 03:57:08 +03:00
2016-08-10 23:52:02 -07:00
2016-08-04 16:23:06 -07:00
2016-07-27 23:19:31 -07:00
2016-09-10 20:05:43 -07:00
2016-09-10 20:05:43 -07:00
2016-08-04 10:36:43 -07:00
2016-08-02 11:47:10 -07:00
2016-08-01 19:22:19 -07:00
2016-08-24 16:02:28 -07:00
2016-07-26 17:44:33 -07:00
2016-09-18 03:57:07 +03:00
2016-09-18 07:40:07 +02:00
2016-09-10 20:05:42 -07:00
2016-07-25 06:40:37 -07:00
2016-09-18 07:40:07 +02:00
2016-08-15 13:34:30 -07:00
2016-09-10 20:05:43 -07:00
2016-08-03 18:57:39 -07:00
2016-07-30 03:11:45 +09:00
2016-09-10 20:05:42 -07:00
2016-09-10 20:05:43 -07:00
2016-09-10 20:05:43 -07:00
2016-09-10 20:05:42 -07:00
2016-08-21 17:43:20 -07:00
2016-09-20 16:34:51 -07:00
2016-07-29 13:49:08 -07:00
2016-09-01 16:51:43 -07:00
2016-07-29 16:59:14 -07:00
2016-07-28 22:16:48 -07:00
2016-09-19 16:41:41 -07:00
2016-08-10 23:52:02 -07:00
2016-08-08 17:56:08 -07:00
2016-09-16 11:16:07 +02:00
2016-09-10 20:05:43 -07:00
2016-09-15 10:20:09 -07:00
2016-08-08 10:46:37 -05:00
2016-07-20 15:01:46 -07:00
2016-09-18 07:40:07 +02:00
2016-09-10 20:05:43 -07:00
2016-09-10 20:05:42 -07:00
2016-07-11 10:54:43 -07:00
2016-09-15 10:20:09 -07:00
2016-08-24 10:46:18 +03:00
2016-09-10 20:05:42 -07:00
2016-09-06 20:41:03 -07:00
2016-08-08 17:49:42 -07:00
2016-09-22 16:28:57 +02:00
2016-08-04 02:04:08 -07:00
2016-07-27 14:31:52 -07:00
2016-09-10 20:05:42 -07:00
2016-09-06 22:46:40 -06:00
2016-09-06 22:46:40 -06:00
2016-09-18 07:40:07 +02:00
2016-09-19 16:41:41 -07:00
2016-08-24 20:14:03 -07:00
2016-09-23 10:34:22 -07:00
2016-09-11 13:07:13 -07:00
2016-09-23 10:34:22 -07:00
2016-08-10 23:52:02 -07:00
2016-07-30 03:11:45 +09:00
2016-07-19 11:48:18 -07:00
2016-09-26 17:31:09 -07:00
2016-08-30 19:50:12 -07:00