Skip to content

Commit c0b4727

Browse files
[Concurrency] Unskip isolated-conformance runtime test on WebAssembly
1 parent 30e0fa5 commit c0b4727

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
}
@@ -208,6 +202,10 @@ await Task.detached { @SomeGlobalActor in
208202
print("Testing a separate task off the main actor")
209203
await Task.detached {
210204
if #available(SwiftStdlib 6.2, *) {
205+
// Skip tests on platforms that use the same executor for the main
206+
// actor and the global concurrent executor.
207+
guard Task.defaultExecutor !== MainActor.executor else { return }
208+
211209
precondition(!tryCastToP(mc))
212210
precondition(!tryCastToP(wrappedMC))
213211

0 commit comments

Comments
 (0)