Skip to content

Commit 6b2ade5

Browse files
[6.2] Skip a part of isolated_conformance.swift on WASI
Custom global executor is not landing in 6.2, so we skip the test by just gating it behind the platform check.
1 parent 500e25c commit 6b2ade5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/Concurrency/Runtime/isolated_conformance.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,9 @@ await Task.detached { @SomeGlobalActor in
200200

201201
// CHECK: Testing a separate task off the main actor
202202
print("Testing a separate task off the main actor")
203+
#if !os(WASI)
203204
await Task.detached {
204205
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 }
208206

209207
precondition(!tryCastToP(mc))
210208
precondition(!tryCastToP(wrappedMC))
@@ -218,6 +216,7 @@ await Task.detached {
218216
print("Cast succeeds, but shouldn't")
219217
}
220218
}.value
219+
#endif
221220

222221

223222
// Ensure that we access mc later

0 commit comments

Comments
 (0)