Skip to content

Commit 5266b99

Browse files
authored
Merge pull request #34891 from DougGregor/concurrency-arm64e-disable
[Concurrency] Tweak where concurrency tests run
2 parents 6328fe3 + 6eb6dd6 commit 5266b99

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

test/Concurrency/Runtime/async_task_priority_basic.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
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
22
// REQUIRES: executable_test
33
// REQUIRES: concurrency
4-
// REQUIRES: OS=macosx
4+
// REQUIRES: libdispatch
5+
// XFAIL: CPU=arm64e
56

67
import Dispatch
78

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

test/Concurrency/Runtime/basic_future.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-concurrency)
1+
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-concurrency %import-libdispatch)
22

33
// REQUIRES: executable_test
44
// REQUIRES: concurrency
5-
// REQUIRES: OS=macosx
5+
// REQUIRES: libdispatch
66
// XFAIL: CPU=arm64e
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: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-concurrency)
1+
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-concurrency %import-libdispatch)
22

33
// REQUIRES: executable_test
44
// REQUIRES: concurrency
5-
// REQUIRES: OS=macosx
5+
// REQUIRES: libdispatch
66
// XFAIL: CPU=arm64e
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)