Skip to content

Commit 1f99204

Browse files
authored
test: disable crashing tests on WASI (swiftlang#67531)
WASI doesn't support spawning a subprocess, so crash tests crashes the test harness itself. Those should be skipped until proper subprocess support is available.
1 parent f8dee9e commit 1f99204

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/stdlib/UnsafePointer.swift.gyb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ ${SelfName}TestSuite.test("pointer(to:)") {
537537
% end
538538
}
539539

540+
#if !os(WASI)
540541
${SelfName}TestSuite.test("pointer(to:).overflow") {
541542
struct Example {
542543
var a = false
@@ -558,6 +559,7 @@ ${SelfName}TestSuite.test("pointer(to:).overflow") {
558559
let doublePointer = p.pointer(to: \.d)
559560
expectNotNil(doublePointer)
560561
}
562+
#endif
561563

562564
% end
563565

0 commit comments

Comments
 (0)