File tree Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 5
5
// rdar://76038845
6
6
// REQUIRES: concurrency_runtime
7
7
// UNSUPPORTED: back_deployment_runtime
8
- // UNSUPPORTED: OS=windows-msvc
9
- // UNSUPPORTED: OS=wasi
8
+ // UNSUPPORTED: single_threaded_runtime
10
9
11
10
// for sleep
12
11
#if canImport(Darwin)
Original file line number Diff line number Diff line change 8
8
// rdar://76038845
9
9
// REQUIRES: concurrency_runtime
10
10
// UNSUPPORTED: back_deployment_runtime
11
+ // UNSUPPORTED: single_threaded_runtime
12
+
11
13
import _Concurrency
12
14
import Dispatch
13
15
@@ -57,14 +59,14 @@ actor MyActor {
57
59
struct Runner {
58
60
static func main( ) async {
59
61
print ( " Launching a main-actor task " )
60
- // CHECK: warning: data race detected: @MainActor function at main/data_race_detection.swift:21 was not called on the main thread
62
+ // CHECK: warning: data race detected: @MainActor function at main/data_race_detection.swift:23 was not called on the main thread
61
63
launchFromMainThread ( )
62
64
sleep ( 1 )
63
65
64
66
let actor = MyActor ( )
65
67
let actorFn = await actor . getTaskOnMyActor ( )
66
68
print ( " Launching an actor-instance task " )
67
- // CHECK: warning: data race detected: actor-isolated function at main/data_race_detection.swift:50 was not called on the same actor
69
+ // CHECK: warning: data race detected: actor-isolated function at main/data_race_detection.swift:52 was not called on the same actor
68
70
launchTask ( actorFn)
69
71
70
72
sleep ( 1 )
Original file line number Diff line number Diff line change 7
7
// rdar://76038845
8
8
// REQUIRES: concurrency_runtime
9
9
// UNSUPPORTED: back_deployment_runtime
10
+ // UNSUPPORTED: single_threaded_runtime
10
11
11
12
import Dispatch
12
13
Original file line number Diff line number Diff line change 4
4
// RUN: %target-codesign %t/a.out
5
5
// RUN: %target-run %t/a.out
6
6
// REQUIRES: executable_test
7
+ // UNSUPPORTED: single_threaded_runtime
7
8
8
9
// Tests for traps at run time when enforcing exclusive access.
9
10
Original file line number Diff line number Diff line change 1
1
// RUN: %target-run-simple-swift
2
2
// REQUIRES: executable_test
3
+ // UNSUPPORTED: single_threaded_runtime
3
4
4
5
// Exercise the metadata cache from multiple threads to shake out any
5
6
// concurrency bugs.
You can’t perform that action at this time.
0 commit comments