Skip to content

Commit 7f63b42

Browse files
committed
[test] ArrayTraps: Skip trap test on negative UBP counts in release builds
1 parent 90d58fe commit 7f63b42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validation-test/stdlib/ArrayTraps.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ ${ArrayTy}Traps.test("${'remove(at:)/%s' % index}")
172172

173173
ArrayTraps.test("unsafeLength")
174174
.skip(.custom(
175-
{ _isFastAssertConfiguration() },
176-
reason: "this trap is not guaranteed to happen in -Ounchecked"))
175+
{ !_isDebugAssertConfiguration() },
176+
reason: "this trap is not guaranteed to happen in -O or -Ounchecked"))
177177
.crashOutputMatches(_isDebugAssertConfiguration() ?
178178
"UnsafeBufferPointer with negative count" : "")
179179
.code {

0 commit comments

Comments
 (0)