Skip to content

Commit deb52a0

Browse files
committed
chore: Update availability and other compilation issues after latest rebase.
1 parent f38ebe9 commit deb52a0

File tree

5 files changed

+37
-2
lines changed

5 files changed

+37
-2
lines changed

Tests/DispatchAsyncTests/AsyncSemaphoreTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Testing
22

33
@testable import DispatchAsync
44

5+
@available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
56
@Test(.timeLimit(.minutes(1)))
67
func asyncSemaphoreWaitSignal() async throws {
78
let semaphore = AsyncSemaphore(value: 1)

Tests/DispatchAsyncTests/DispatchGroupTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ import class Foundation.Thread
2020
import Testing
2121

2222
private typealias DispatchGroup = DispatchAsync.DispatchGroup
23+
private typealias DispatchQueue = DispatchAsync.DispatchQueue
2324

2425
@Suite("DispatchGroup Tests")
2526
struct DispatchGroupTests {
2627
@Test(arguments: [1000])
28+
@available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
2729
func dispatchGroupOrderCleanliness(repetitions: Int) async throws {
2830
// Repeating this `repetitions` number of times to help rule out
2931
// edge cases that only show up some of the time
@@ -133,6 +135,7 @@ struct DispatchGroupTests {
133135
/// math-heavy blocks on a global queue, then waiting for them to finish with a
134136
/// timeout. It also verifies that `notify` is invoked exactly once.
135137
@Test(.timeLimit(.minutes(1)))
138+
@available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
136139
func dispatchGroupStress() async throws {
137140
let iterations = 1000
138141
// We use a separate concurrent queue rather than the global queue to avoid interference issues

Tests/DispatchAsyncTests/DispatchPingPongTests.swift

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2025 PassiveLogic, Inc.
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
// See CONTRIBUTORS.txt for the list of Swift.org project authors
10+
//
11+
// SPDX-License-Identifier: Apache-2.0
12+
//
13+
//===----------------------------------------------------------------------===//
14+
15+
@_spi(DispatchAsync) import DispatchAsync
116
import Testing
217

3-
@testable import DispatchAsync
18+
private typealias DispatchQueue = DispatchAsync.DispatchQueue
419

520
/// Ping-Pong queue test is adapted from the test
621
/// [dispatch_pingpong.c in libdispatch](https://github.com/swiftlang/swift-corelibs-libdispatch/blob/main/tests/dispatch_pingpong.c).

Tests/DispatchAsyncTests/DispatchTimeIntervalTests.swift

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2025 PassiveLogic, Inc.
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
// See CONTRIBUTORS.txt for the list of Swift.org project authors
10+
//
11+
// SPDX-License-Identifier: Apache-2.0
12+
//
13+
//===----------------------------------------------------------------------===//
14+
15+
@_spi(DispatchAsync) import DispatchAsync
116
import Testing
217

3-
@testable import DispatchAsync
18+
private typealias DispatchTimeInterval = DispatchAsync.DispatchTimeInterval
419

520
@Test
621
func dispatchTimeIntervalEquality() throws {

Tests/DispatchAsyncTests/DispatchTimeTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ func testDispatchTimeContinousClockBasics() async throws {
2929
#expect(b < c)
3030
}
3131

32+
@available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
3233
@Test
3334
func testUptimeNanosecondsEqualityForConsecutiveCalls() async throws {
3435
let original = DispatchTime.now()

0 commit comments

Comments
 (0)