Skip to content

Commit 6eb6dd6

Browse files
committed
[Concurrency] Update tests for Linux
1 parent cfe2ebd commit 6eb6dd6

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

test/Concurrency/Runtime/async_task_priority_basic.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
import Dispatch
88

9+
#if canImport(Darwin)
10+
import Darwin
11+
#elseif canImport(Glibc)
12+
import Glibc
13+
#endif
14+
915
// ==== ------------------------------------------------------------------------
1016
// MARK: "Infrastructure" for the tests
1117

test/Concurrency/Runtime/basic_future.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77

88
import Dispatch
99

10+
#if canImport(Darwin)
11+
import Darwin
12+
#elseif canImport(Glibc)
13+
import Glibc
14+
#endif
15+
1016
extension DispatchQueue {
1117
func async<R>(execute: @escaping () async throws -> R) -> Task.Handle<R> {
1218
let handle = Task.runDetached(operation: execute)

test/Concurrency/Runtime/future_fibonacci.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77

88
import Dispatch
99

10+
#if canImport(Darwin)
11+
import Darwin
12+
#elseif canImport(Glibc)
13+
import Glibc
14+
#endif
15+
1016
extension DispatchQueue {
1117
func async<R>(execute: @escaping () async throws -> R) -> Task.Handle<R> {
1218
let handle = Task.runDetached(operation: execute)

0 commit comments

Comments
 (0)