File tree Expand file tree Collapse file tree 5 files changed +7
-2
lines changed Expand file tree Collapse file tree 5 files changed +7
-2
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: single_threaded_runtime
8
9
9
10
// for sleep
10
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
11
12
12
13
import _Concurrency
13
14
import Dispatch
@@ -58,14 +59,14 @@ actor MyActor {
58
59
struct Runner {
59
60
static func main( ) async {
60
61
print ( " Launching a main-actor task " )
61
- // CHECK: warning: data race detected: @MainActor function at main/data_race_detection.swift:22 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
62
63
launchFromMainThread ( )
63
64
sleep ( 1 )
64
65
65
66
let actor = MyActor ( )
66
67
let actorFn = await actor . getTaskOnMyActor ( )
67
68
print ( " Launching an actor-instance task " )
68
- // CHECK: warning: data race detected: actor-isolated function at main/data_race_detection.swift:51 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
69
70
launchTask ( actorFn)
70
71
71
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