File tree Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-concurrency) | %FileCheck %s --dump-input always
1
+ // RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-concurrency %import-libdispatch ) | %FileCheck %s --dump-input always
2
2
// REQUIRES: executable_test
3
3
// REQUIRES: concurrency
4
- // REQUIRES: OS=macosx
4
+ // REQUIRES: libdispatch
5
+ // XFAIL: CPU=arm64e
5
6
6
7
import Dispatch
7
8
9
+ #if canImport(Darwin)
10
+ import Darwin
11
+ #elseif canImport(Glibc)
12
+ import Glibc
13
+ #endif
14
+
8
15
// ==== ------------------------------------------------------------------------
9
16
// MARK: "Infrastructure" for the tests
10
17
Original file line number Diff line number Diff line change 1
- // RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-concurrency)
1
+ // RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-concurrency %import-libdispatch )
2
2
3
3
// REQUIRES: executable_test
4
4
// REQUIRES: concurrency
5
- // REQUIRES: OS=macosx
5
+ // REQUIRES: libdispatch
6
6
// XFAIL: CPU=arm64e
7
7
8
8
import Dispatch
9
9
10
+ #if canImport(Darwin)
11
+ import Darwin
12
+ #elseif canImport(Glibc)
13
+ import Glibc
14
+ #endif
15
+
10
16
extension DispatchQueue {
11
17
func async < R> ( execute: @escaping ( ) async throws -> R ) -> Task . Handle < R > {
12
18
let handle = Task . runDetached ( operation: execute)
Original file line number Diff line number Diff line change 1
- // RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-concurrency)
1
+ // RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-concurrency %import-libdispatch )
2
2
3
3
// REQUIRES: executable_test
4
4
// REQUIRES: concurrency
5
- // REQUIRES: OS=macosx
5
+ // REQUIRES: libdispatch
6
6
// XFAIL: CPU=arm64e
7
7
8
8
import Dispatch
9
9
10
+ #if canImport(Darwin)
11
+ import Darwin
12
+ #elseif canImport(Glibc)
13
+ import Glibc
14
+ #endif
15
+
10
16
extension DispatchQueue {
11
17
func async < R> ( execute: @escaping ( ) async throws -> R ) -> Task . Handle < R > {
12
18
let handle = Task . runDetached ( operation: execute)
You can’t perform that action at this time.
0 commit comments