Skip to content

Commit de176b2

Browse files
[Concurrency] Unskip isolated-conformance runtime test on WebAssembly
1 parent 4763239 commit de176b2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/Concurrency/Runtime/isolated_conformance.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
// REQUIRES: concurrency_runtime
66
// UNSUPPORTED: back_deployment_runtime
77

8-
// FIXME: WebAssembly doesn't currently have a good way to install the
9-
// "isCurrentGlobalActor" hook on which this checking depends. Disable
10-
// the test for the moment.
11-
// UNSUPPORTED: wasm
12-
// UNSUPPORTED: CPU=wasm32
13-
148
protocol P {
159
func f()
1610
}
@@ -207,6 +201,10 @@ await Task.detached { @SomeGlobalActor in
207201
// CHECK: Testing a separate task off the main actor
208202
print("Testing a separate task off the main actor")
209203
await Task.detached {
204+
// Skip tests on platforms that use the same executor for the main
205+
// actor and the global concurrent executor.
206+
guard Task.defaultExecutor !== MainActor.executor else { return }
207+
210208
if #available(SwiftStdlib 6.2, *) {
211209
precondition(!tryCastToP(mc))
212210
precondition(!tryCastToP(wrappedMC))

0 commit comments

Comments
 (0)