Skip to content

Commit d10a5e6

Browse files
Concurrency: disable crash-expected tests on WASI
1 parent 99d8037 commit d10a5e6

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

test/Concurrency/Runtime/cancellation_handler.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// UNSUPPORTED: use_os_stdlib
77
// UNSUPPORTED: back_deployment_runtime
88
// UNSUPPORTED: OS=windows-msvc
9+
// UNSUPPORTED: OS=wasi
910

1011
// for sleep
1112
#if canImport(Darwin)

test/Concurrency/Runtime/checked_continuation.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// UNSUPPORTED: back_deployment_runtime
77

88
// UNSUPPORTED: OS=windows-msvc
9+
// UNSUPPORTED: OS=wasi
910

1011
import _Concurrency
1112
import StdlibUnittest

test/Concurrency/Runtime/exclusivity.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// UNSUPPORTED: back_deployment_runtime
99

1010
// UNSUPPORTED: OS=windows-msvc
11+
// UNSUPPORTED: OS=wasi
1112

1213
// This test makes sure that:
1314
//

test/Concurrency/Runtime/exclusivity_custom_executors.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
// Disabled until test hang can be looked at.
1111
// UNSUPPORTED: OS=windows-msvc
12+
// UNSUPPORTED: OS=wasi
1213

1314
// This test makes sure that we properly save/restore access when we
1415
// synchronously launch a task from a serial executor. The access from the task

test/stdlib/UnsafeRawPointer.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ UnsafeMutableRawPointerExtraTestSuite.test("moveInitialize:from:") {
231231
check(Check.RightOverlap)
232232
}
233233

234+
#if !os(WASI)
234235
UnsafeMutableRawPointerExtraTestSuite.test("absurd.allocation.misaligned") {
235236
expectCrashLater()
236237
let mustFail = UnsafeMutableRawPointer.allocate(byteCount: 1024,
@@ -244,5 +245,6 @@ UnsafeMutableRawPointerExtraTestSuite.test("absurd.allocation.gargantuan") {
244245
alignment: 0)
245246
expectUnreachable()
246247
}
248+
#endif
247249

248250
runAllTests()

0 commit comments

Comments
 (0)