Skip to content

Commit aa7b2dc

Browse files
authored
test: disable crashing tests on WASI
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 a8fc894 commit aa7b2dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/Concurrency/Runtime/actor_assert_precondition_executor.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,12 @@ actor Someone {
7878
await MainFriend().callCheckMainActor()
7979
}
8080

81+
#if !os(WASI)
8182
tests.test("precondition on actor (main): wrongly assume the main executor, from actor on other executor") {
8283
expectCrashLater(withMessage: "Incorrect actor executor assumption; Expected 'MainActor' executor.")
8384
await Someone().callCheckMainActor()
8485
}
86+
#endif
8587

8688
// === Global actor -----------------------------------------------------
8789

@@ -94,4 +96,4 @@ actor Someone {
9496

9597
await runAllTestsAsync()
9698
}
97-
}
99+
}

0 commit comments

Comments
 (0)