Skip to content

Commit 8b52415

Browse files
authored
test/stdlib/Error.swift: disable crashing tests on WASI
1 parent bb7fa58 commit 8b52415

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/stdlib/Error.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ ErrorTests.test("test dealloc empty error box") {
207207
}
208208
}
209209

210+
#if !os(WASI)
210211
var errors: [Error] = []
211212

212213
@inline(never)
@@ -249,6 +250,7 @@ ErrorTests.test("willThrow") {
249250
expectEqual(2, errors.count)
250251
expectEqual(SillyError.self, type(of: errors.last!))
251252
}
253+
#endif
252254
253255
runAllTests()
254256

0 commit comments

Comments
 (0)