Skip to content

Commit 3ee09a2

Browse files
committed
Switch concurrency runtime tests to "REQUIRES: concurrency_runtime"
Rather than blanket-disabling concurrency tests when we aren't using a just-built concurrency library, enable them whenever we have a suitable concurrency runtime, either just-built, in the OS, or via the back-deployment libraries.
1 parent a71cd56 commit 3ee09a2

File tree

117 files changed

+118
-117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+118
-117
lines changed

test/Concurrency/Runtime/actor_counters.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
@available(SwiftStdlib 5.5, *)

test/Concurrency/Runtime/actor_detach.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// REQUIRES: concurrency
55
// REQUIRES: foundation
66

7-
// UNSUPPORTED: use_os_stdlib
7+
// REQUIRES: concurrency_runtime
88
// UNSUPPORTED: back_deployment_runtime
99

1010
import Foundation

test/Concurrency/Runtime/actor_init.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// REQUIRES: concurrency
55
// REQUIRES: libdispatch
66

7-
// UNSUPPORTED: use_os_stdlib
7+
// REQUIRES: concurrency_runtime
88
// UNSUPPORTED: back_deployment_runtime
99

1010
@available(SwiftStdlib 5.5, *)

test/Concurrency/Runtime/actor_keypaths.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// REQUIRES: executable_test
44
// REQUIRES: concurrency
55
// REQUIRES: libdispatch
6-
// UNSUPPORTED: use_os_stdlib
6+
// REQUIRES: concurrency_runtime
77
// UNSUPPORTED: back_deployment_runtime
88

99
actor Page {

test/Concurrency/Runtime/async.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://82123254
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
import Dispatch

test/Concurrency/Runtime/async_initializer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
@available(SwiftStdlib 5.5, *)

test/Concurrency/Runtime/async_let_fibonacci.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
func fib(_ n: Int) -> Int {

test/Concurrency/Runtime/async_let_throw_completion_order.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://82123254
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
struct Bad: Error {}

test/Concurrency/Runtime/async_let_throws.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
struct Boom: Error {}

test/Concurrency/Runtime/async_properties_actor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
struct Container {

test/Concurrency/Runtime/async_sequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// REQUIRES: concurrency
55

66
// rdar://76038845
7-
// UNSUPPORTED: use_os_stdlib
7+
// REQUIRES: concurrency_runtime
88

99
// TODO: This crashes on linux for some strange reason
1010
// REQUIRES: OS=macosx

test/Concurrency/Runtime/async_stream.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// REQUIRES: concurrency
44
// REQUIRES: libdispatch
55
// REQUIRES: executable_test
6-
// UNSUPPORTED: use_os_stdlib
6+
// REQUIRES: concurrency_runtime
77

88
// rdar://78109470
99
// UNSUPPORTED: back_deployment_runtime

test/Concurrency/Runtime/async_task_async_let_child_cancel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// UNSUPPORTED: OS=windows-msvc
77
// UNSUPPORTED: back_deployment_runtime
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99

1010
// REQUIRES: rdar_77671328
1111

test/Concurrency/Runtime/async_task_cancellation_early.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// REQUIRES: rdar80745964
99

1010
// rdar://76038845
11-
// UNSUPPORTED: use_os_stdlib
11+
// REQUIRES: concurrency_runtime
1212
// UNSUPPORTED: back_deployment_runtime
1313

1414
import Dispatch

test/Concurrency/Runtime/async_task_cancellation_while_running.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
import Dispatch

test/Concurrency/Runtime/async_task_detach.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// REQUIRES: concurrency
55

66
// rdar://76038845
7-
// UNSUPPORTED: use_os_stdlib
7+
// REQUIRES: concurrency_runtime
88
// UNSUPPORTED: back_deployment_runtime
99

1010
// https://bugs.swift.org/browse/SR-14333

test/Concurrency/Runtime/async_task_handle_cancellation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// REQUIRES: concurrency
55

66
// rdar://76038845
7-
// UNSUPPORTED: use_os_stdlib
7+
// REQUIRES: concurrency_runtime
88
// UNSUPPORTED: back_deployment_runtime
99

1010
@available(SwiftStdlib 5.5, *)

test/Concurrency/Runtime/async_task_locals_basic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
final class StringLike: Sendable, CustomStringConvertible {

test/Concurrency/Runtime/async_task_locals_copy_to_async.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// REQUIRES: libdispatch
77

88
// rdar://76038845
9-
// UNSUPPORTED: use_os_stdlib
9+
// REQUIRES: concurrency_runtime
1010
// UNSUPPORTED: back_deployment_runtime
1111

1212
@available(SwiftStdlib 5.5, *)

test/Concurrency/Runtime/async_task_locals_copy_to_sync.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
import Dispatch

test/Concurrency/Runtime/async_task_locals_groups.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// REQUIRES: libdispatch
77

88
// rdar://76038845
9-
// UNSUPPORTED: use_os_stdlib
9+
// REQUIRES: concurrency_runtime
1010
// UNSUPPORTED: back_deployment_runtime
1111

1212
@available(SwiftStdlib 5.5, *)

test/Concurrency/Runtime/async_task_locals_prevent_illegal_use.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// REQUIRES: executable_test
99
// REQUIRES: concurrency
1010
// REQUIRES: libdispatch
11-
// UNSUPPORTED: use_os_stdlib
11+
// REQUIRES: concurrency_runtime
1212
// UNSUPPORTED: back_deployment_runtime
1313

1414
@available(SwiftStdlib 5.5, *)

test/Concurrency/Runtime/async_task_locals_spawn_let.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
@available(SwiftStdlib 5.5, *)

test/Concurrency/Runtime/async_task_locals_synchronous_bind.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
@available(SwiftStdlib 5.5, *)

test/Concurrency/Runtime/async_task_locals_wrapper.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
@available(SwiftStdlib 5.5, *)

test/Concurrency/Runtime/async_task_priority_current.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
import Dispatch

test/Concurrency/Runtime/async_task_sleep.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// REQUIRES: libdispatch
55

66
// rdar://76038845
7-
// UNSUPPORTED: use_os_stdlib
7+
// REQUIRES: concurrency_runtime
88
// UNSUPPORTED: back_deployment_runtime
99

1010
import _Concurrency

test/Concurrency/Runtime/async_task_sleep_cancel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// REQUIRES: libdispatch
55

66
// rdar://76038845
7-
// UNSUPPORTED: use_os_stdlib
7+
// REQUIRES: concurrency_runtime
88
// UNSUPPORTED: back_deployment_runtime
99

1010
import _Concurrency

test/Concurrency/Runtime/async_task_withUnsafeCurrentTask.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// REQUIRES: concurrency
44
// REQUIRES: swift_task_debug_log
55

6-
// UNSUPPORTED: use_os_stdlib
6+
// REQUIRES: concurrency_runtime
77
// UNSUPPORTED: back_deployment_runtime
88

99
#if os(Linux)

test/Concurrency/Runtime/async_task_yield.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// https://bugs.swift.org/browse/SR-14333
77
// UNSUPPORTED: OS=windows-msvc
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
@available(SwiftStdlib 5.5, *)

test/Concurrency/Runtime/async_taskgroup_asynciterator_semantics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s --dump-input=always
22
// REQUIRES: executable_test
33
// REQUIRES: concurrency
4-
// UNSUPPORTED: use_os_stdlib
4+
// REQUIRES: concurrency_runtime
55
// UNSUPPORTED: back_deployment_runtime
66
// UNSUPPORTED: linux
77

test/Concurrency/Runtime/async_taskgroup_cancelAll_only_specific_group.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
import Dispatch

test/Concurrency/Runtime/async_taskgroup_cancel_from_inside_child.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
import Dispatch

test/Concurrency/Runtime/async_taskgroup_cancel_parent_affects_group.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
import Dispatch

test/Concurrency/Runtime/async_taskgroup_cancel_then_completions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
import Dispatch

test/Concurrency/Runtime/async_taskgroup_cancel_then_spawn.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
import Dispatch

test/Concurrency/Runtime/async_taskgroup_dontLeakTasks.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// REQUIRES: concurrency
44
// REQUIRES: swift_task_debug_log
55

6-
// UNSUPPORTED: use_os_stdlib
6+
// REQUIRES: concurrency_runtime
77
// UNSUPPORTED: back_deployment_runtime
88

99
#if os(Linux)

test/Concurrency/Runtime/async_taskgroup_is_asyncsequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// REQUIRES: concurrency
55

66
// rdar://76038845
7-
// UNSUPPORTED: use_os_stdlib
7+
// REQUIRES: concurrency_runtime
88
// UNSUPPORTED: back_deployment_runtime
99

1010
// UNSUPPORTED: linux

test/Concurrency/Runtime/async_taskgroup_is_empty.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
import Dispatch

test/Concurrency/Runtime/async_taskgroup_next_not_invoked_cancelAll.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
import Dispatch

test/Concurrency/Runtime/async_taskgroup_next_not_invoked_without_cancelAll.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
import Dispatch

test/Concurrency/Runtime/async_taskgroup_next_on_completed.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99
// UNSUPPORTED: back_deployment_runtime
1010

1111
import Dispatch

test/Concurrency/Runtime/async_taskgroup_next_on_pending.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: libdispatch
66

77
// rdar://76038845
8-
// UNSUPPORTED: use_os_stdlib
8+
// REQUIRES: concurrency_runtime
99

1010
// REQUIRES: rdar75096485
1111

test/Concurrency/Runtime/async_taskgroup_throw_recover.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// REQUIRES: concurrency
55

66
// rdar://76038845
7-
// UNSUPPORTED: use_os_stdlib
7+
// REQUIRES: concurrency_runtime
88
// UNSUPPORTED: back_deployment_runtime
99

1010
struct Boom: Error {}

0 commit comments

Comments
 (0)