@@ -231,7 +231,12 @@ UnsafeRawBufferPointerTestSuite.test("inBounds") {
231
231
expectEqualSequence ( firstHalf, secondHalf)
232
232
}
233
233
234
- UnsafeRawBufferPointerTestSuite . test ( " subscript.get.underflow " ) {
234
+ // FIXME: rdar:31495442. Enable this in release builds too.
235
+ UnsafeRawBufferPointerTestSuite . test ( " subscript.get.underflow " )
236
+ . skip ( . custom(
237
+ { !_isDebugAssertConfiguration( ) } ,
238
+ reason: " This tests a debug precondition. " ) )
239
+ . code {
235
240
let buffer = UnsafeMutableRawBufferPointer . allocate ( count: 2 )
236
241
defer { buffer. deallocate ( ) }
237
242
@@ -244,7 +249,12 @@ UnsafeRawBufferPointerTestSuite.test("subscript.get.underflow") {
244
249
_ = bytes [ - 1 ]
245
250
}
246
251
247
- UnsafeRawBufferPointerTestSuite . test ( " subscript.get.overflow " ) {
252
+ // FIXME: rdar:31495442. Enable this in release builds too.
253
+ UnsafeRawBufferPointerTestSuite . test ( " subscript.get.overflow " )
254
+ . skip ( . custom(
255
+ { !_isDebugAssertConfiguration( ) } ,
256
+ reason: " This tests a debug precondition. " ) )
257
+ . code {
248
258
let buffer = UnsafeMutableRawBufferPointer . allocate ( count: 2 )
249
259
defer { buffer. deallocate ( ) }
250
260
@@ -257,7 +267,12 @@ UnsafeRawBufferPointerTestSuite.test("subscript.get.overflow") {
257
267
_ = bytes [ 1 ]
258
268
}
259
269
260
- UnsafeRawBufferPointerTestSuite . test ( " subscript.set.underflow " ) {
270
+ // FIXME: rdar:31495442. Enable this in release builds too.
271
+ UnsafeRawBufferPointerTestSuite . test ( " subscript.set.underflow " )
272
+ . skip ( . custom(
273
+ { !_isDebugAssertConfiguration( ) } ,
274
+ reason: " This tests a debug precondition. " ) )
275
+ . code {
261
276
let buffer = UnsafeMutableRawBufferPointer . allocate ( count: 2 )
262
277
defer { buffer. deallocate ( ) }
263
278
@@ -270,7 +285,12 @@ UnsafeRawBufferPointerTestSuite.test("subscript.set.underflow") {
270
285
bytes [ - 1 ] = 0
271
286
}
272
287
273
- UnsafeRawBufferPointerTestSuite . test ( " subscript.set.overflow " ) {
288
+ // FIXME: rdar:31495442. Enable this in release builds too.
289
+ UnsafeRawBufferPointerTestSuite . test ( " subscript.set.overflow " )
290
+ . skip ( . custom(
291
+ { !_isDebugAssertConfiguration( ) } ,
292
+ reason: " This tests a debug precondition. " ) )
293
+ . code {
274
294
let buffer = UnsafeMutableRawBufferPointer . allocate ( count: 2 )
275
295
defer { buffer. deallocate ( ) }
276
296
@@ -283,7 +303,12 @@ UnsafeRawBufferPointerTestSuite.test("subscript.set.overflow") {
283
303
bytes [ 1 ] = 0
284
304
}
285
305
286
- UnsafeRawBufferPointerTestSuite . test ( " subscript.range.get.underflow " ) {
306
+ // FIXME: rdar:31495442. Enable this in release builds too.
307
+ UnsafeRawBufferPointerTestSuite . test ( " subscript.range.get.underflow " )
308
+ . skip ( . custom(
309
+ { !_isDebugAssertConfiguration( ) } ,
310
+ reason: " This tests a debug precondition. " ) )
311
+ . code {
287
312
let buffer = UnsafeMutableRawBufferPointer . allocate ( count: 3 )
288
313
defer { buffer. deallocate ( ) }
289
314
@@ -296,7 +321,12 @@ UnsafeRawBufferPointerTestSuite.test("subscript.range.get.underflow") {
296
321
_ = bytes [ - 1 ..< 1 ]
297
322
}
298
323
299
- UnsafeRawBufferPointerTestSuite . test ( " subscript.range.get.overflow " ) {
324
+ // FIXME: rdar:31495442. Enable this in release builds too.
325
+ UnsafeRawBufferPointerTestSuite . test ( " subscript.range.get.overflow " )
326
+ . skip ( . custom(
327
+ { !_isDebugAssertConfiguration( ) } ,
328
+ reason: " This tests a debug precondition. " ) )
329
+ . code {
300
330
let buffer = UnsafeMutableRawBufferPointer . allocate ( count: 3 )
301
331
defer { buffer. deallocate ( ) }
302
332
@@ -309,7 +339,12 @@ UnsafeRawBufferPointerTestSuite.test("subscript.range.get.overflow") {
309
339
_ = bytes [ 1 ..< 3 ]
310
340
}
311
341
312
- UnsafeRawBufferPointerTestSuite . test ( " subscript.range.set.underflow " ) {
342
+ // FIXME: rdar:31495442. Enable this in release builds too.
343
+ UnsafeRawBufferPointerTestSuite . test ( " subscript.range.set.underflow " )
344
+ . skip ( . custom(
345
+ { !_isDebugAssertConfiguration( ) } ,
346
+ reason: " This tests a debug precondition. " ) )
347
+ . code {
313
348
var buffer = UnsafeMutableRawBufferPointer . allocate ( count: 3 )
314
349
defer { buffer. deallocate ( ) }
315
350
@@ -322,7 +357,12 @@ UnsafeRawBufferPointerTestSuite.test("subscript.range.set.underflow") {
322
357
bytes [ - 1 ..< 1 ] = bytes [ 0 ..< 2 ]
323
358
}
324
359
325
- UnsafeRawBufferPointerTestSuite . test ( " subscript.range.set.overflow " ) {
360
+ // FIXME: rdar:31495442. Enable this in release builds too.
361
+ UnsafeRawBufferPointerTestSuite . test ( " subscript.range.set.overflow " )
362
+ . skip ( . custom(
363
+ { !_isDebugAssertConfiguration( ) } ,
364
+ reason: " This tests a debug precondition. " ) )
365
+ . code {
326
366
var buffer = UnsafeMutableRawBufferPointer . allocate ( count: 3 )
327
367
defer { buffer. deallocate ( ) }
328
368
0 commit comments