@@ -98,8 +98,8 @@ final class TracerTests: XCTestCase {
98
98
}
99
99
100
100
func testWithSpan_automaticBaggagePropagation_sync( ) throws {
101
- #if swift(>=5.5)
102
- guard #available( macOS 12 , iOS 15 , tvOS 15 , watchOS 8 , * ) else {
101
+ #if swift(>=5.5) && canImport(_Concurrency)
102
+ guard #available( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * ) else {
103
103
throw XCTSkip ( " Task locals are not supported on this platform. " )
104
104
}
105
105
@@ -127,8 +127,8 @@ final class TracerTests: XCTestCase {
127
127
}
128
128
129
129
func testWithSpan_automaticBaggagePropagation_sync_throws( ) throws {
130
- #if swift(>=5.5)
131
- guard #available( macOS 12 , iOS 15 , tvOS 15 , watchOS 8 , * ) else {
130
+ #if swift(>=5.5) && canImport(_Concurrency)
131
+ guard #available( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * ) else {
132
132
throw XCTSkip ( " Task locals are not supported on this platform. " )
133
133
}
134
134
@@ -157,8 +157,8 @@ final class TracerTests: XCTestCase {
157
157
}
158
158
159
159
func testWithSpan_automaticBaggagePropagation_async( ) throws {
160
- #if swift(>=5.5)
161
- guard #available( macOS 12 , iOS 15 , tvOS 15 , watchOS 8 , * ) else {
160
+ #if swift(>=5.5) && canImport(_Concurrency)
161
+ guard #available( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * ) else {
162
162
throw XCTSkip ( " Task locals are not supported on this platform. " )
163
163
}
164
164
@@ -188,8 +188,8 @@ final class TracerTests: XCTestCase {
188
188
}
189
189
190
190
func testWithSpan_automaticBaggagePropagation_async_throws( ) throws {
191
- #if swift(>=5.5)
192
- guard #available( macOS 12 , iOS 15 , tvOS 15 , watchOS 8 , * ) else {
191
+ #if swift(>=5.5) && canImport(_Concurrency)
192
+ guard #available( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * ) else {
193
193
throw XCTSkip ( " Task locals are not supported on this platform. " )
194
194
}
195
195
@@ -219,8 +219,8 @@ final class TracerTests: XCTestCase {
219
219
#endif
220
220
}
221
221
222
- #if swift(>=5.5)
223
- @available ( macOS 12 , iOS 15 , tvOS 15 , watchOS 8 , * )
222
+ #if swift(>=5.5) && canImport(_Concurrency)
223
+ @available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
224
224
/// Helper method to execute async operations until we can use async tests (currently incompatible with the generated LinuxMain file).
225
225
/// - Parameter operation: The operation to test.
226
226
func testAsync( _ operation: @escaping ( ) async throws -> Void ) rethrows {
0 commit comments