Build Information
Failed to build XCTest, reference main (de1522), with Swift 6.3 for Wasm on 20 Apr 2026 13:19:45 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftlang/swift-corelibs-xctest.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/swiftlang/swift-corelibs-xctest
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at de15221 Send interop event if XCTest is not the active test library (#542)
Cloned https://github.com/swiftlang/swift-corelibs-xctest.git
Revision (git rev-parse @):
de1522154ad1c3e78e389a04f0f7723988c7e24e
SUCCESS checkout https://github.com/swiftlang/swift-corelibs-xctest.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/swiftlang/swift-corelibs-xctest.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/5] Write sources
[1/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/36] Emitting module XCTest
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:25:11: error: cannot find type 'DispatchWorkItem' in scope
23 | func cancel()
24 | }
25 | extension DispatchWorkItem: ManageableWaiterWatchdog {}
| `- error: cannot find type 'DispatchWorkItem' in scope
26 |
27 | /// This class manages the XCTWaiter instances which are currently waiting on a particular thread.
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:53:31: error: cannot find 'Thread' in scope
51 |
52 | private var managedWaiterStack = [ManagedWaiterDetails]()
53 | private weak var thread = Thread.current
| `- error: cannot find 'Thread' in scope
54 | private let queue = DispatchQueue(label: "org.swift.XCTest.WaiterManager")
55 |
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:54:25: error: cannot find 'DispatchQueue' in scope
52 | private var managedWaiterStack = [ManagedWaiterDetails]()
53 | private weak var thread = Thread.current
54 | private let queue = DispatchQueue(label: "org.swift.XCTest.WaiterManager")
| `- error: cannot find 'DispatchQueue' in scope
55 |
56 | // Use `WaiterManager.current` to access the thread-specific instance
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:26:25: error: cannot find 'DispatchQueue' in scope
24 | public typealias Handler = @Sendable (Notification) -> Bool
25 |
26 | private let queue = DispatchQueue(label: "org.swift.XCTest.XCTNSNotificationExpectation")
| `- error: cannot find 'DispatchQueue' in scope
27 |
28 | /// The name of the notification being waited on.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:16:12: warning: class 'XCTNSNotificationExpectation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | /// Expectation subclass for waiting on a condition defined by a Foundation Notification instance.
16 | open class XCTNSNotificationExpectation: XCTestExpectation {
| `- warning: class 'XCTNSNotificationExpectation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// A closure to be invoked when a notification specified by the expectation is observed.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:25:25: error: cannot find 'DispatchQueue' in scope
23 | public typealias Handler = @Sendable () -> Bool
24 |
25 | private let queue = DispatchQueue(label: "org.swift.XCTest.XCTNSPredicateExpectation")
| `- error: cannot find 'DispatchQueue' in scope
26 |
27 | /// The predicate used by the expectation.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:49:35: error: 'current' is unavailable: RunLoop is not available on WASI
47 | }
48 |
49 | private let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
50 | private var timer: Timer?
51 | private let evaluationInterval = 0.01
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:16:12: warning: class 'XCTNSPredicateExpectation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | /// Expectation subclass for waiting on a condition defined by an NSPredicate and an optional object.
16 | open class XCTNSPredicateExpectation: XCTestExpectation {
| `- warning: class 'XCTNSPredicateExpectation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// A closure to be invoked whenever evaluating the predicate against the object returns true.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:116:42: error: cannot find 'DispatchQueue' in scope
114 | }
115 |
116 | internal static let subsystemQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter")
| `- error: cannot find 'DispatchQueue' in scope
117 |
118 | private var state = State.ready
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:125:33: error: cannot find 'DispatchQueue' in scope
123 |
124 | private weak var _delegate: XCTWaiterDelegate?
125 | private let delegateQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter.delegate")
| `- error: cannot find 'DispatchQueue' in scope
126 |
127 | /// The waiter delegate will be called with various events described in the `XCTWaiterDelegate` protocol documentation.
/host/spi-builder-workspace/Sources/XCTest/Public/XCTestCase.swift:70:32: error: cannot find type 'DispatchQueue' in scope
68 | }
69 | #else
70 | typealias SubsystemQueue = DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
71 | #endif
72 |
[4/40] Compiling XCTest XCTestObservationCenter.swift
[5/40] Compiling XCTest XCTestRun.swift
[6/40] Compiling XCTest XCTestSuite.swift
[7/40] Compiling XCTest XCTestSuiteRun.swift
[8/40] Compiling XCTest XCTAssert.swift
/host/spi-builder-workspace/Sources/XCTest/Public/XCTestCase.swift:70:32: error: cannot find type 'DispatchQueue' in scope
68 | }
69 | #else
70 | typealias SubsystemQueue = DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
71 | #endif
72 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:116:42: error: cannot find 'DispatchQueue' in scope
114 | }
115 |
116 | internal static let subsystemQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter")
| `- error: cannot find 'DispatchQueue' in scope
117 |
118 | private var state = State.ready
[9/40] Compiling XCTest XCTSkip.swift
/host/spi-builder-workspace/Sources/XCTest/Public/XCTestCase.swift:70:32: error: cannot find type 'DispatchQueue' in scope
68 | }
69 | #else
70 | typealias SubsystemQueue = DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
71 | #endif
72 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:116:42: error: cannot find 'DispatchQueue' in scope
114 | }
115 |
116 | internal static let subsystemQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter")
| `- error: cannot find 'DispatchQueue' in scope
117 |
118 | private var state = State.ready
[10/40] Compiling XCTest XCTestCase+Performance.swift
/host/spi-builder-workspace/Sources/XCTest/Public/XCTestCase.swift:70:32: error: cannot find type 'DispatchQueue' in scope
68 | }
69 | #else
70 | typealias SubsystemQueue = DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
71 | #endif
72 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:116:42: error: cannot find 'DispatchQueue' in scope
114 | }
115 |
116 | internal static let subsystemQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter")
| `- error: cannot find 'DispatchQueue' in scope
117 |
118 | private var state = State.ready
[11/40] Compiling XCTest XCTestCase.swift
/host/spi-builder-workspace/Sources/XCTest/Public/XCTestCase.swift:70:32: error: cannot find type 'DispatchQueue' in scope
68 | }
69 | #else
70 | typealias SubsystemQueue = DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
71 | #endif
72 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:116:42: error: cannot find 'DispatchQueue' in scope
114 | }
115 |
116 | internal static let subsystemQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter")
| `- error: cannot find 'DispatchQueue' in scope
117 |
118 | private var state = State.ready
[12/40] Compiling XCTest XCTWaiter.swift
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:116:42: error: cannot find 'DispatchQueue' in scope
114 | }
115 |
116 | internal static let subsystemQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter")
| `- error: cannot find 'DispatchQueue' in scope
117 |
118 | private var state = State.ready
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:125:33: error: cannot find 'DispatchQueue' in scope
123 |
124 | private weak var _delegate: XCTWaiterDelegate?
125 | private let delegateQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter.delegate")
| `- error: cannot find 'DispatchQueue' in scope
126 |
127 | /// The waiter delegate will be called with various events described in the `XCTWaiterDelegate` protocol documentation.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:135:13: error: cannot find 'dispatchPrecondition' in scope
133 | }
134 | set {
135 | dispatchPrecondition(condition: .notOnQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
136 | XCTWaiter.subsystemQueue.async { self._delegate = newValue }
137 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:135:46: error: cannot infer contextual base in reference to member 'notOnQueue'
133 | }
134 | set {
135 | dispatchPrecondition(condition: .notOnQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'notOnQueue'
136 | XCTWaiter.subsystemQueue.async { self._delegate = newValue }
137 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:198:31: error: 'current' is unavailable: RunLoop is not available on WASI
196 | self.timeout = timeout
197 | waitSourceLocation = SourceLocation(file: file, line: line)
198 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
199 |
200 | XCTWaiter.subsystemQueue.sync {
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:287:13: error: cannot find 'Thread' in scope
285 | // Swift runtime (as used by Swift concurrency.) To ensure we use a thread owned by neither subsystem, use
286 | // Foundation's Thread.detachNewThread(_:).
287 | Thread.detachNewThread { [self] in
| `- error: cannot find 'Thread' in scope
288 | let result = wait(for: expectations, timeout: timeout, enforceOrder: enforceOrder, file: file, line: line)
289 | continuation.resume(returning: result)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:343:9: error: cannot find 'dispatchPrecondition' in scope
341 |
342 | private func queue_configureExpectations(_ expectations: [XCTestExpectation]) {
343 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
344 |
345 | for expectation in expectations {
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:343:42: error: cannot infer contextual base in reference to member 'onQueue'
341 |
342 | private func queue_configureExpectations(_ expectations: [XCTestExpectation]) {
343 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
344 |
345 | for expectation in expectations {
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:354:9: error: cannot find 'dispatchPrecondition' in scope
352 |
353 | private func queue_validateExpectationFulfillment(dueToTimeout: Bool) {
354 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
355 | guard case let .waiting(waitingState) = state else { return }
356 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:354:42: error: cannot infer contextual base in reference to member 'onQueue'
352 |
353 | private func queue_validateExpectationFulfillment(dueToTimeout: Bool) {
354 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
355 | guard case let .waiting(waitingState) = state else { return }
356 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:386:9: error: cannot find 'dispatchPrecondition' in scope
384 |
385 | private func queue_finish(result: Result, cancelPrimitiveWait: Bool, delegateBlock: ((XCTWaiterDelegate) -> Void)? = nil) {
386 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
387 | guard case let .waiting(waitingState) = state else { preconditionFailure("Unexpected state: \(state)") }
388 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:386:42: error: cannot infer contextual base in reference to member 'onQueue'
384 |
385 | private func queue_finish(result: Result, cancelPrimitiveWait: Bool, delegateBlock: ((XCTWaiterDelegate) -> Void)? = nil) {
386 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
387 | guard case let .waiting(waitingState) = state else { preconditionFailure("Unexpected state: \(state)") }
388 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:428:21: error: value of type 'RunLoop' has no member 'run'
426 |
427 | // RunLoop.run(mode:before:) should have @discardableResult <rdar://problem/45371901>
428 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: timeIntervalToRun))
| `- error: value of type 'RunLoop' has no member 'run'
429 | }
430 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:428:32: error: cannot infer contextual base in reference to member 'default'
426 |
427 | // RunLoop.run(mode:before:) should have @discardableResult <rdar://problem/45371901>
428 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: timeIntervalToRun))
| `- error: cannot infer contextual base in reference to member 'default'
429 | }
430 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:436:17: error: value of type 'RunLoop' has no member '_stop'
434 | CFRunLoopStop(runLoop.getCFRunLoop())
435 | #else
436 | runLoop._stop()
| `- error: value of type 'RunLoop' has no member '_stop'
437 | #endif
438 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:468:9: error: cannot find 'dispatchPrecondition' in scope
466 |
467 | func queue_handleWatchdogTimeout() {
468 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
469 |
470 | queue_validateExpectationFulfillment(dueToTimeout: true)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:468:42: error: cannot infer contextual base in reference to member 'onQueue'
466 |
467 | func queue_handleWatchdogTimeout() {
468 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
469 |
470 | queue_validateExpectationFulfillment(dueToTimeout: true)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:476:9: error: cannot find 'dispatchPrecondition' in scope
474 |
475 | func queue_interrupt(for interruptingWaiter: XCTWaiter) {
476 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
477 |
478 | queue_finish(result: .interrupted, cancelPrimitiveWait: true) { delegate in
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:476:42: error: cannot infer contextual base in reference to member 'onQueue'
474 |
475 | func queue_interrupt(for interruptingWaiter: XCTWaiter) {
476 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
477 |
478 | queue_finish(result: .interrupted, cancelPrimitiveWait: true) { delegate in
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:48:22: error: cannot find 'Thread' in scope
46 | @preconcurrency @MainActor
47 | func waitForExpectations(timeout: TimeInterval, file: StaticString = #file, line: Int = #line, handler: XCWaitCompletionHandler? = nil) {
48 | precondition(Thread.isMainThread, "\(#function) must be called on the main thread")
| `- error: cannot find 'Thread' in scope
49 | if currentWaiter != nil {
50 | return recordFailure(description: "API violation - calling wait on test case while already waiting.", at: SourceLocation(file: file, line: line), expected: false)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:19:9: error: cannot find 'dispatchPrecondition' in scope
17 | private static var currentMonotonicallyIncreasingToken: UInt64 = 0
18 | private static func queue_nextMonotonicallyIncreasingToken() -> UInt64 {
19 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
20 | currentMonotonicallyIncreasingToken += 1
21 | return currentMonotonicallyIncreasingToken
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:19:42: error: cannot infer contextual base in reference to member 'onQueue'
17 | private static var currentMonotonicallyIncreasingToken: UInt64 = 0
18 | private static func queue_nextMonotonicallyIncreasingToken() -> UInt64 {
19 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
20 | currentMonotonicallyIncreasingToken += 1
21 | return currentMonotonicallyIncreasingToken
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:152:13: error: cannot find 'dispatchPrecondition' in scope
150 | internal var queue_expectationDescription: String {
151 | get {
152 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
153 | return _expectationDescription
154 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:152:46: error: cannot infer contextual base in reference to member 'onQueue'
150 | internal var queue_expectationDescription: String {
151 | get {
152 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
153 | return _expectationDescription
154 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:156:13: error: cannot find 'dispatchPrecondition' in scope
154 | }
155 | set {
156 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
157 | _expectationDescription = newValue
158 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:156:46: error: cannot infer contextual base in reference to member 'onQueue'
154 | }
155 | set {
156 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
157 | _expectationDescription = newValue
158 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:162:13: error: cannot find 'dispatchPrecondition' in scope
160 | internal var queue_isFulfilled: Bool {
161 | get {
162 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
163 | return isFulfilled
164 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:162:46: error: cannot infer contextual base in reference to member 'onQueue'
160 | internal var queue_isFulfilled: Bool {
161 | get {
162 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
163 | return isFulfilled
164 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:166:13: error: cannot find 'dispatchPrecondition' in scope
164 | }
165 | set {
166 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
167 | isFulfilled = newValue
168 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:166:46: error: cannot infer contextual base in reference to member 'onQueue'
164 | }
165 | set {
166 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
167 | isFulfilled = newValue
168 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:172:13: error: cannot find 'dispatchPrecondition' in scope
170 | internal var queue_fulfillmentToken: UInt64 {
171 | get {
172 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
173 | return fulfillmentToken
174 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:172:46: error: cannot infer contextual base in reference to member 'onQueue'
170 | internal var queue_fulfillmentToken: UInt64 {
171 | get {
172 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
173 | return fulfillmentToken
174 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:176:13: error: cannot find 'dispatchPrecondition' in scope
174 | }
175 | set {
176 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
177 | fulfillmentToken = newValue
178 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:176:46: error: cannot infer contextual base in reference to member 'onQueue'
174 | }
175 | set {
176 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
177 | fulfillmentToken = newValue
178 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:182:13: error: cannot find 'dispatchPrecondition' in scope
180 | internal var queue_expectedFulfillmentCount: Int {
181 | get {
182 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
183 | return _expectedFulfillmentCount
184 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:182:46: error: cannot infer contextual base in reference to member 'onQueue'
180 | internal var queue_expectedFulfillmentCount: Int {
181 | get {
182 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
183 | return _expectedFulfillmentCount
184 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:186:13: error: cannot find 'dispatchPrecondition' in scope
184 | }
185 | set {
186 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
187 | _expectedFulfillmentCount = newValue
188 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:186:46: error: cannot infer contextual base in reference to member 'onQueue'
184 | }
185 | set {
186 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
187 | _expectedFulfillmentCount = newValue
188 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:192:13: error: cannot find 'dispatchPrecondition' in scope
190 | internal var queue_isInverted: Bool {
191 | get {
192 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
193 | return _isInverted
194 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:192:46: error: cannot infer contextual base in reference to member 'onQueue'
190 | internal var queue_isInverted: Bool {
191 | get {
192 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
193 | return _isInverted
194 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:196:13: error: cannot find 'dispatchPrecondition' in scope
194 | }
195 | set {
196 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
197 | _isInverted = newValue
198 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:196:46: error: cannot infer contextual base in reference to member 'onQueue'
194 | }
195 | set {
196 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
197 | _isInverted = newValue
198 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:202:13: error: cannot find 'dispatchPrecondition' in scope
200 | internal var queue_hasBeenWaitedOn: Bool {
201 | get {
202 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
203 | return _hasBeenWaitedOn
204 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:202:46: error: cannot infer contextual base in reference to member 'onQueue'
200 | internal var queue_hasBeenWaitedOn: Bool {
201 | get {
202 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
203 | return _hasBeenWaitedOn
204 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:206:13: error: cannot find 'dispatchPrecondition' in scope
204 | }
205 | set {
206 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
207 | _hasBeenWaitedOn = newValue
208 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:206:46: error: cannot infer contextual base in reference to member 'onQueue'
204 | }
205 | set {
206 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
207 | _hasBeenWaitedOn = newValue
208 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:216:13: error: cannot find 'dispatchPrecondition' in scope
214 | internal var queue_didFulfillHandler: (() -> Void)? {
215 | get {
216 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
217 | return _didFulfillHandler
218 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:216:46: error: cannot infer contextual base in reference to member 'onQueue'
214 | internal var queue_didFulfillHandler: (() -> Void)? {
215 | get {
216 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
217 | return _didFulfillHandler
218 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:220:13: error: cannot find 'dispatchPrecondition' in scope
218 | }
219 | set {
220 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
221 | _didFulfillHandler = newValue
222 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:220:46: error: cannot infer contextual base in reference to member 'onQueue'
218 | }
219 | set {
220 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
221 | _didFulfillHandler = newValue
222 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:269:24: error: 'nil' requires a contextual type
267 | expected: false)
268 |
269 | return nil
| `- error: 'nil' requires a contextual type
270 | }
271 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:283:9: error: cannot find 'dispatchPrecondition' in scope
281 |
282 | private func queue_fulfill(sourceLocation: SourceLocation) -> Bool {
283 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
284 |
285 | numberOfFulfillments += 1
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:283:42: error: cannot infer contextual base in reference to member 'onQueue'
281 |
282 | private func queue_fulfill(sourceLocation: SourceLocation) -> Bool {
283 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
284 |
285 | numberOfFulfillments += 1
[13/40] Compiling XCTest XCTestCase+Asynchronous.swift
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:116:42: error: cannot find 'DispatchQueue' in scope
114 | }
115 |
116 | internal static let subsystemQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter")
| `- error: cannot find 'DispatchQueue' in scope
117 |
118 | private var state = State.ready
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:125:33: error: cannot find 'DispatchQueue' in scope
123 |
124 | private weak var _delegate: XCTWaiterDelegate?
125 | private let delegateQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter.delegate")
| `- error: cannot find 'DispatchQueue' in scope
126 |
127 | /// The waiter delegate will be called with various events described in the `XCTWaiterDelegate` protocol documentation.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:135:13: error: cannot find 'dispatchPrecondition' in scope
133 | }
134 | set {
135 | dispatchPrecondition(condition: .notOnQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
136 | XCTWaiter.subsystemQueue.async { self._delegate = newValue }
137 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:135:46: error: cannot infer contextual base in reference to member 'notOnQueue'
133 | }
134 | set {
135 | dispatchPrecondition(condition: .notOnQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'notOnQueue'
136 | XCTWaiter.subsystemQueue.async { self._delegate = newValue }
137 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:198:31: error: 'current' is unavailable: RunLoop is not available on WASI
196 | self.timeout = timeout
197 | waitSourceLocation = SourceLocation(file: file, line: line)
198 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
199 |
200 | XCTWaiter.subsystemQueue.sync {
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:287:13: error: cannot find 'Thread' in scope
285 | // Swift runtime (as used by Swift concurrency.) To ensure we use a thread owned by neither subsystem, use
286 | // Foundation's Thread.detachNewThread(_:).
287 | Thread.detachNewThread { [self] in
| `- error: cannot find 'Thread' in scope
288 | let result = wait(for: expectations, timeout: timeout, enforceOrder: enforceOrder, file: file, line: line)
289 | continuation.resume(returning: result)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:343:9: error: cannot find 'dispatchPrecondition' in scope
341 |
342 | private func queue_configureExpectations(_ expectations: [XCTestExpectation]) {
343 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
344 |
345 | for expectation in expectations {
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:343:42: error: cannot infer contextual base in reference to member 'onQueue'
341 |
342 | private func queue_configureExpectations(_ expectations: [XCTestExpectation]) {
343 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
344 |
345 | for expectation in expectations {
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:354:9: error: cannot find 'dispatchPrecondition' in scope
352 |
353 | private func queue_validateExpectationFulfillment(dueToTimeout: Bool) {
354 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
355 | guard case let .waiting(waitingState) = state else { return }
356 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:354:42: error: cannot infer contextual base in reference to member 'onQueue'
352 |
353 | private func queue_validateExpectationFulfillment(dueToTimeout: Bool) {
354 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
355 | guard case let .waiting(waitingState) = state else { return }
356 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:386:9: error: cannot find 'dispatchPrecondition' in scope
384 |
385 | private func queue_finish(result: Result, cancelPrimitiveWait: Bool, delegateBlock: ((XCTWaiterDelegate) -> Void)? = nil) {
386 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
387 | guard case let .waiting(waitingState) = state else { preconditionFailure("Unexpected state: \(state)") }
388 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:386:42: error: cannot infer contextual base in reference to member 'onQueue'
384 |
385 | private func queue_finish(result: Result, cancelPrimitiveWait: Bool, delegateBlock: ((XCTWaiterDelegate) -> Void)? = nil) {
386 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
387 | guard case let .waiting(waitingState) = state else { preconditionFailure("Unexpected state: \(state)") }
388 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:428:21: error: value of type 'RunLoop' has no member 'run'
426 |
427 | // RunLoop.run(mode:before:) should have @discardableResult <rdar://problem/45371901>
428 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: timeIntervalToRun))
| `- error: value of type 'RunLoop' has no member 'run'
429 | }
430 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:428:32: error: cannot infer contextual base in reference to member 'default'
426 |
427 | // RunLoop.run(mode:before:) should have @discardableResult <rdar://problem/45371901>
428 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: timeIntervalToRun))
| `- error: cannot infer contextual base in reference to member 'default'
429 | }
430 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:436:17: error: value of type 'RunLoop' has no member '_stop'
434 | CFRunLoopStop(runLoop.getCFRunLoop())
435 | #else
436 | runLoop._stop()
| `- error: value of type 'RunLoop' has no member '_stop'
437 | #endif
438 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:468:9: error: cannot find 'dispatchPrecondition' in scope
466 |
467 | func queue_handleWatchdogTimeout() {
468 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
469 |
470 | queue_validateExpectationFulfillment(dueToTimeout: true)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:468:42: error: cannot infer contextual base in reference to member 'onQueue'
466 |
467 | func queue_handleWatchdogTimeout() {
468 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
469 |
470 | queue_validateExpectationFulfillment(dueToTimeout: true)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:476:9: error: cannot find 'dispatchPrecondition' in scope
474 |
475 | func queue_interrupt(for interruptingWaiter: XCTWaiter) {
476 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
477 |
478 | queue_finish(result: .interrupted, cancelPrimitiveWait: true) { delegate in
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:476:42: error: cannot infer contextual base in reference to member 'onQueue'
474 |
475 | func queue_interrupt(for interruptingWaiter: XCTWaiter) {
476 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
477 |
478 | queue_finish(result: .interrupted, cancelPrimitiveWait: true) { delegate in
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:48:22: error: cannot find 'Thread' in scope
46 | @preconcurrency @MainActor
47 | func waitForExpectations(timeout: TimeInterval, file: StaticString = #file, line: Int = #line, handler: XCWaitCompletionHandler? = nil) {
48 | precondition(Thread.isMainThread, "\(#function) must be called on the main thread")
| `- error: cannot find 'Thread' in scope
49 | if currentWaiter != nil {
50 | return recordFailure(description: "API violation - calling wait on test case while already waiting.", at: SourceLocation(file: file, line: line), expected: false)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:19:9: error: cannot find 'dispatchPrecondition' in scope
17 | private static var currentMonotonicallyIncreasingToken: UInt64 = 0
18 | private static func queue_nextMonotonicallyIncreasingToken() -> UInt64 {
19 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
20 | currentMonotonicallyIncreasingToken += 1
21 | return currentMonotonicallyIncreasingToken
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:19:42: error: cannot infer contextual base in reference to member 'onQueue'
17 | private static var currentMonotonicallyIncreasingToken: UInt64 = 0
18 | private static func queue_nextMonotonicallyIncreasingToken() -> UInt64 {
19 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
20 | currentMonotonicallyIncreasingToken += 1
21 | return currentMonotonicallyIncreasingToken
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:152:13: error: cannot find 'dispatchPrecondition' in scope
150 | internal var queue_expectationDescription: String {
151 | get {
152 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
153 | return _expectationDescription
154 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:152:46: error: cannot infer contextual base in reference to member 'onQueue'
150 | internal var queue_expectationDescription: String {
151 | get {
152 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
153 | return _expectationDescription
154 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:156:13: error: cannot find 'dispatchPrecondition' in scope
154 | }
155 | set {
156 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
157 | _expectationDescription = newValue
158 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:156:46: error: cannot infer contextual base in reference to member 'onQueue'
154 | }
155 | set {
156 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
157 | _expectationDescription = newValue
158 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:162:13: error: cannot find 'dispatchPrecondition' in scope
160 | internal var queue_isFulfilled: Bool {
161 | get {
162 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
163 | return isFulfilled
164 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:162:46: error: cannot infer contextual base in reference to member 'onQueue'
160 | internal var queue_isFulfilled: Bool {
161 | get {
162 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
163 | return isFulfilled
164 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:166:13: error: cannot find 'dispatchPrecondition' in scope
164 | }
165 | set {
166 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
167 | isFulfilled = newValue
168 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:166:46: error: cannot infer contextual base in reference to member 'onQueue'
164 | }
165 | set {
166 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
167 | isFulfilled = newValue
168 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:172:13: error: cannot find 'dispatchPrecondition' in scope
170 | internal var queue_fulfillmentToken: UInt64 {
171 | get {
172 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
173 | return fulfillmentToken
174 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:172:46: error: cannot infer contextual base in reference to member 'onQueue'
170 | internal var queue_fulfillmentToken: UInt64 {
171 | get {
172 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
173 | return fulfillmentToken
174 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:176:13: error: cannot find 'dispatchPrecondition' in scope
174 | }
175 | set {
176 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
177 | fulfillmentToken = newValue
178 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:176:46: error: cannot infer contextual base in reference to member 'onQueue'
174 | }
175 | set {
176 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
177 | fulfillmentToken = newValue
178 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:182:13: error: cannot find 'dispatchPrecondition' in scope
180 | internal var queue_expectedFulfillmentCount: Int {
181 | get {
182 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
183 | return _expectedFulfillmentCount
184 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:182:46: error: cannot infer contextual base in reference to member 'onQueue'
180 | internal var queue_expectedFulfillmentCount: Int {
181 | get {
182 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
183 | return _expectedFulfillmentCount
184 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:186:13: error: cannot find 'dispatchPrecondition' in scope
184 | }
185 | set {
186 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
187 | _expectedFulfillmentCount = newValue
188 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:186:46: error: cannot infer contextual base in reference to member 'onQueue'
184 | }
185 | set {
186 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
187 | _expectedFulfillmentCount = newValue
188 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:192:13: error: cannot find 'dispatchPrecondition' in scope
190 | internal var queue_isInverted: Bool {
191 | get {
192 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
193 | return _isInverted
194 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:192:46: error: cannot infer contextual base in reference to member 'onQueue'
190 | internal var queue_isInverted: Bool {
191 | get {
192 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
193 | return _isInverted
194 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:196:13: error: cannot find 'dispatchPrecondition' in scope
194 | }
195 | set {
196 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
197 | _isInverted = newValue
198 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:196:46: error: cannot infer contextual base in reference to member 'onQueue'
194 | }
195 | set {
196 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
197 | _isInverted = newValue
198 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:202:13: error: cannot find 'dispatchPrecondition' in scope
200 | internal var queue_hasBeenWaitedOn: Bool {
201 | get {
202 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
203 | return _hasBeenWaitedOn
204 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:202:46: error: cannot infer contextual base in reference to member 'onQueue'
200 | internal var queue_hasBeenWaitedOn: Bool {
201 | get {
202 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
203 | return _hasBeenWaitedOn
204 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:206:13: error: cannot find 'dispatchPrecondition' in scope
204 | }
205 | set {
206 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
207 | _hasBeenWaitedOn = newValue
208 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:206:46: error: cannot infer contextual base in reference to member 'onQueue'
204 | }
205 | set {
206 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
207 | _hasBeenWaitedOn = newValue
208 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:216:13: error: cannot find 'dispatchPrecondition' in scope
214 | internal var queue_didFulfillHandler: (() -> Void)? {
215 | get {
216 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
217 | return _didFulfillHandler
218 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:216:46: error: cannot infer contextual base in reference to member 'onQueue'
214 | internal var queue_didFulfillHandler: (() -> Void)? {
215 | get {
216 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
217 | return _didFulfillHandler
218 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:220:13: error: cannot find 'dispatchPrecondition' in scope
218 | }
219 | set {
220 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
221 | _didFulfillHandler = newValue
222 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:220:46: error: cannot infer contextual base in reference to member 'onQueue'
218 | }
219 | set {
220 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
221 | _didFulfillHandler = newValue
222 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:269:24: error: 'nil' requires a contextual type
267 | expected: false)
268 |
269 | return nil
| `- error: 'nil' requires a contextual type
270 | }
271 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:283:9: error: cannot find 'dispatchPrecondition' in scope
281 |
282 | private func queue_fulfill(sourceLocation: SourceLocation) -> Bool {
283 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
284 |
285 | numberOfFulfillments += 1
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:283:42: error: cannot infer contextual base in reference to member 'onQueue'
281 |
282 | private func queue_fulfill(sourceLocation: SourceLocation) -> Bool {
283 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
284 |
285 | numberOfFulfillments += 1
[14/40] Compiling XCTest XCTestExpectation.swift
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:116:42: error: cannot find 'DispatchQueue' in scope
114 | }
115 |
116 | internal static let subsystemQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter")
| `- error: cannot find 'DispatchQueue' in scope
117 |
118 | private var state = State.ready
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:125:33: error: cannot find 'DispatchQueue' in scope
123 |
124 | private weak var _delegate: XCTWaiterDelegate?
125 | private let delegateQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter.delegate")
| `- error: cannot find 'DispatchQueue' in scope
126 |
127 | /// The waiter delegate will be called with various events described in the `XCTWaiterDelegate` protocol documentation.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:135:13: error: cannot find 'dispatchPrecondition' in scope
133 | }
134 | set {
135 | dispatchPrecondition(condition: .notOnQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
136 | XCTWaiter.subsystemQueue.async { self._delegate = newValue }
137 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:135:46: error: cannot infer contextual base in reference to member 'notOnQueue'
133 | }
134 | set {
135 | dispatchPrecondition(condition: .notOnQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'notOnQueue'
136 | XCTWaiter.subsystemQueue.async { self._delegate = newValue }
137 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:198:31: error: 'current' is unavailable: RunLoop is not available on WASI
196 | self.timeout = timeout
197 | waitSourceLocation = SourceLocation(file: file, line: line)
198 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
199 |
200 | XCTWaiter.subsystemQueue.sync {
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:287:13: error: cannot find 'Thread' in scope
285 | // Swift runtime (as used by Swift concurrency.) To ensure we use a thread owned by neither subsystem, use
286 | // Foundation's Thread.detachNewThread(_:).
287 | Thread.detachNewThread { [self] in
| `- error: cannot find 'Thread' in scope
288 | let result = wait(for: expectations, timeout: timeout, enforceOrder: enforceOrder, file: file, line: line)
289 | continuation.resume(returning: result)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:343:9: error: cannot find 'dispatchPrecondition' in scope
341 |
342 | private func queue_configureExpectations(_ expectations: [XCTestExpectation]) {
343 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
344 |
345 | for expectation in expectations {
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:343:42: error: cannot infer contextual base in reference to member 'onQueue'
341 |
342 | private func queue_configureExpectations(_ expectations: [XCTestExpectation]) {
343 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
344 |
345 | for expectation in expectations {
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:354:9: error: cannot find 'dispatchPrecondition' in scope
352 |
353 | private func queue_validateExpectationFulfillment(dueToTimeout: Bool) {
354 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
355 | guard case let .waiting(waitingState) = state else { return }
356 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:354:42: error: cannot infer contextual base in reference to member 'onQueue'
352 |
353 | private func queue_validateExpectationFulfillment(dueToTimeout: Bool) {
354 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
355 | guard case let .waiting(waitingState) = state else { return }
356 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:386:9: error: cannot find 'dispatchPrecondition' in scope
384 |
385 | private func queue_finish(result: Result, cancelPrimitiveWait: Bool, delegateBlock: ((XCTWaiterDelegate) -> Void)? = nil) {
386 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
387 | guard case let .waiting(waitingState) = state else { preconditionFailure("Unexpected state: \(state)") }
388 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:386:42: error: cannot infer contextual base in reference to member 'onQueue'
384 |
385 | private func queue_finish(result: Result, cancelPrimitiveWait: Bool, delegateBlock: ((XCTWaiterDelegate) -> Void)? = nil) {
386 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
387 | guard case let .waiting(waitingState) = state else { preconditionFailure("Unexpected state: \(state)") }
388 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:428:21: error: value of type 'RunLoop' has no member 'run'
426 |
427 | // RunLoop.run(mode:before:) should have @discardableResult <rdar://problem/45371901>
428 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: timeIntervalToRun))
| `- error: value of type 'RunLoop' has no member 'run'
429 | }
430 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:428:32: error: cannot infer contextual base in reference to member 'default'
426 |
427 | // RunLoop.run(mode:before:) should have @discardableResult <rdar://problem/45371901>
428 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: timeIntervalToRun))
| `- error: cannot infer contextual base in reference to member 'default'
429 | }
430 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:436:17: error: value of type 'RunLoop' has no member '_stop'
434 | CFRunLoopStop(runLoop.getCFRunLoop())
435 | #else
436 | runLoop._stop()
| `- error: value of type 'RunLoop' has no member '_stop'
437 | #endif
438 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:468:9: error: cannot find 'dispatchPrecondition' in scope
466 |
467 | func queue_handleWatchdogTimeout() {
468 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
469 |
470 | queue_validateExpectationFulfillment(dueToTimeout: true)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:468:42: error: cannot infer contextual base in reference to member 'onQueue'
466 |
467 | func queue_handleWatchdogTimeout() {
468 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
469 |
470 | queue_validateExpectationFulfillment(dueToTimeout: true)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:476:9: error: cannot find 'dispatchPrecondition' in scope
474 |
475 | func queue_interrupt(for interruptingWaiter: XCTWaiter) {
476 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
477 |
478 | queue_finish(result: .interrupted, cancelPrimitiveWait: true) { delegate in
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:476:42: error: cannot infer contextual base in reference to member 'onQueue'
474 |
475 | func queue_interrupt(for interruptingWaiter: XCTWaiter) {
476 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
477 |
478 | queue_finish(result: .interrupted, cancelPrimitiveWait: true) { delegate in
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:48:22: error: cannot find 'Thread' in scope
46 | @preconcurrency @MainActor
47 | func waitForExpectations(timeout: TimeInterval, file: StaticString = #file, line: Int = #line, handler: XCWaitCompletionHandler? = nil) {
48 | precondition(Thread.isMainThread, "\(#function) must be called on the main thread")
| `- error: cannot find 'Thread' in scope
49 | if currentWaiter != nil {
50 | return recordFailure(description: "API violation - calling wait on test case while already waiting.", at: SourceLocation(file: file, line: line), expected: false)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:19:9: error: cannot find 'dispatchPrecondition' in scope
17 | private static var currentMonotonicallyIncreasingToken: UInt64 = 0
18 | private static func queue_nextMonotonicallyIncreasingToken() -> UInt64 {
19 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
20 | currentMonotonicallyIncreasingToken += 1
21 | return currentMonotonicallyIncreasingToken
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:19:42: error: cannot infer contextual base in reference to member 'onQueue'
17 | private static var currentMonotonicallyIncreasingToken: UInt64 = 0
18 | private static func queue_nextMonotonicallyIncreasingToken() -> UInt64 {
19 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
20 | currentMonotonicallyIncreasingToken += 1
21 | return currentMonotonicallyIncreasingToken
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:152:13: error: cannot find 'dispatchPrecondition' in scope
150 | internal var queue_expectationDescription: String {
151 | get {
152 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
153 | return _expectationDescription
154 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:152:46: error: cannot infer contextual base in reference to member 'onQueue'
150 | internal var queue_expectationDescription: String {
151 | get {
152 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
153 | return _expectationDescription
154 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:156:13: error: cannot find 'dispatchPrecondition' in scope
154 | }
155 | set {
156 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
157 | _expectationDescription = newValue
158 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:156:46: error: cannot infer contextual base in reference to member 'onQueue'
154 | }
155 | set {
156 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
157 | _expectationDescription = newValue
158 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:162:13: error: cannot find 'dispatchPrecondition' in scope
160 | internal var queue_isFulfilled: Bool {
161 | get {
162 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
163 | return isFulfilled
164 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:162:46: error: cannot infer contextual base in reference to member 'onQueue'
160 | internal var queue_isFulfilled: Bool {
161 | get {
162 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
163 | return isFulfilled
164 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:166:13: error: cannot find 'dispatchPrecondition' in scope
164 | }
165 | set {
166 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
167 | isFulfilled = newValue
168 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:166:46: error: cannot infer contextual base in reference to member 'onQueue'
164 | }
165 | set {
166 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
167 | isFulfilled = newValue
168 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:172:13: error: cannot find 'dispatchPrecondition' in scope
170 | internal var queue_fulfillmentToken: UInt64 {
171 | get {
172 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
173 | return fulfillmentToken
174 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:172:46: error: cannot infer contextual base in reference to member 'onQueue'
170 | internal var queue_fulfillmentToken: UInt64 {
171 | get {
172 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
173 | return fulfillmentToken
174 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:176:13: error: cannot find 'dispatchPrecondition' in scope
174 | }
175 | set {
176 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
177 | fulfillmentToken = newValue
178 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:176:46: error: cannot infer contextual base in reference to member 'onQueue'
174 | }
175 | set {
176 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
177 | fulfillmentToken = newValue
178 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:182:13: error: cannot find 'dispatchPrecondition' in scope
180 | internal var queue_expectedFulfillmentCount: Int {
181 | get {
182 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
183 | return _expectedFulfillmentCount
184 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:182:46: error: cannot infer contextual base in reference to member 'onQueue'
180 | internal var queue_expectedFulfillmentCount: Int {
181 | get {
182 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
183 | return _expectedFulfillmentCount
184 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:186:13: error: cannot find 'dispatchPrecondition' in scope
184 | }
185 | set {
186 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
187 | _expectedFulfillmentCount = newValue
188 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:186:46: error: cannot infer contextual base in reference to member 'onQueue'
184 | }
185 | set {
186 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
187 | _expectedFulfillmentCount = newValue
188 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:192:13: error: cannot find 'dispatchPrecondition' in scope
190 | internal var queue_isInverted: Bool {
191 | get {
192 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
193 | return _isInverted
194 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:192:46: error: cannot infer contextual base in reference to member 'onQueue'
190 | internal var queue_isInverted: Bool {
191 | get {
192 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
193 | return _isInverted
194 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:196:13: error: cannot find 'dispatchPrecondition' in scope
194 | }
195 | set {
196 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
197 | _isInverted = newValue
198 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:196:46: error: cannot infer contextual base in reference to member 'onQueue'
194 | }
195 | set {
196 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
197 | _isInverted = newValue
198 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:202:13: error: cannot find 'dispatchPrecondition' in scope
200 | internal var queue_hasBeenWaitedOn: Bool {
201 | get {
202 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
203 | return _hasBeenWaitedOn
204 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:202:46: error: cannot infer contextual base in reference to member 'onQueue'
200 | internal var queue_hasBeenWaitedOn: Bool {
201 | get {
202 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
203 | return _hasBeenWaitedOn
204 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:206:13: error: cannot find 'dispatchPrecondition' in scope
204 | }
205 | set {
206 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
207 | _hasBeenWaitedOn = newValue
208 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:206:46: error: cannot infer contextual base in reference to member 'onQueue'
204 | }
205 | set {
206 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
207 | _hasBeenWaitedOn = newValue
208 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:216:13: error: cannot find 'dispatchPrecondition' in scope
214 | internal var queue_didFulfillHandler: (() -> Void)? {
215 | get {
216 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
217 | return _didFulfillHandler
218 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:216:46: error: cannot infer contextual base in reference to member 'onQueue'
214 | internal var queue_didFulfillHandler: (() -> Void)? {
215 | get {
216 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
217 | return _didFulfillHandler
218 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:220:13: error: cannot find 'dispatchPrecondition' in scope
218 | }
219 | set {
220 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
221 | _didFulfillHandler = newValue
222 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:220:46: error: cannot infer contextual base in reference to member 'onQueue'
218 | }
219 | set {
220 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
221 | _didFulfillHandler = newValue
222 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:269:24: error: 'nil' requires a contextual type
267 | expected: false)
268 |
269 | return nil
| `- error: 'nil' requires a contextual type
270 | }
271 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:283:9: error: cannot find 'dispatchPrecondition' in scope
281 |
282 | private func queue_fulfill(sourceLocation: SourceLocation) -> Bool {
283 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
284 |
285 | numberOfFulfillments += 1
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:283:42: error: cannot infer contextual base in reference to member 'onQueue'
281 |
282 | private func queue_fulfill(sourceLocation: SourceLocation) -> Bool {
283 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
284 |
285 | numberOfFulfillments += 1
[15/40] Compiling XCTest XCAbstractTest.swift
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:116:42: error: cannot find 'DispatchQueue' in scope
114 | }
115 |
116 | internal static let subsystemQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter")
| `- error: cannot find 'DispatchQueue' in scope
117 |
118 | private var state = State.ready
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:125:33: error: cannot find 'DispatchQueue' in scope
123 |
124 | private weak var _delegate: XCTWaiterDelegate?
125 | private let delegateQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter.delegate")
| `- error: cannot find 'DispatchQueue' in scope
126 |
127 | /// The waiter delegate will be called with various events described in the `XCTWaiterDelegate` protocol documentation.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:135:13: error: cannot find 'dispatchPrecondition' in scope
133 | }
134 | set {
135 | dispatchPrecondition(condition: .notOnQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
136 | XCTWaiter.subsystemQueue.async { self._delegate = newValue }
137 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:135:46: error: cannot infer contextual base in reference to member 'notOnQueue'
133 | }
134 | set {
135 | dispatchPrecondition(condition: .notOnQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'notOnQueue'
136 | XCTWaiter.subsystemQueue.async { self._delegate = newValue }
137 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:198:31: error: 'current' is unavailable: RunLoop is not available on WASI
196 | self.timeout = timeout
197 | waitSourceLocation = SourceLocation(file: file, line: line)
198 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
199 |
200 | XCTWaiter.subsystemQueue.sync {
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:287:13: error: cannot find 'Thread' in scope
285 | // Swift runtime (as used by Swift concurrency.) To ensure we use a thread owned by neither subsystem, use
286 | // Foundation's Thread.detachNewThread(_:).
287 | Thread.detachNewThread { [self] in
| `- error: cannot find 'Thread' in scope
288 | let result = wait(for: expectations, timeout: timeout, enforceOrder: enforceOrder, file: file, line: line)
289 | continuation.resume(returning: result)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:343:9: error: cannot find 'dispatchPrecondition' in scope
341 |
342 | private func queue_configureExpectations(_ expectations: [XCTestExpectation]) {
343 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
344 |
345 | for expectation in expectations {
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:343:42: error: cannot infer contextual base in reference to member 'onQueue'
341 |
342 | private func queue_configureExpectations(_ expectations: [XCTestExpectation]) {
343 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
344 |
345 | for expectation in expectations {
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:354:9: error: cannot find 'dispatchPrecondition' in scope
352 |
353 | private func queue_validateExpectationFulfillment(dueToTimeout: Bool) {
354 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
355 | guard case let .waiting(waitingState) = state else { return }
356 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:354:42: error: cannot infer contextual base in reference to member 'onQueue'
352 |
353 | private func queue_validateExpectationFulfillment(dueToTimeout: Bool) {
354 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
355 | guard case let .waiting(waitingState) = state else { return }
356 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:386:9: error: cannot find 'dispatchPrecondition' in scope
384 |
385 | private func queue_finish(result: Result, cancelPrimitiveWait: Bool, delegateBlock: ((XCTWaiterDelegate) -> Void)? = nil) {
386 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
387 | guard case let .waiting(waitingState) = state else { preconditionFailure("Unexpected state: \(state)") }
388 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:386:42: error: cannot infer contextual base in reference to member 'onQueue'
384 |
385 | private func queue_finish(result: Result, cancelPrimitiveWait: Bool, delegateBlock: ((XCTWaiterDelegate) -> Void)? = nil) {
386 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
387 | guard case let .waiting(waitingState) = state else { preconditionFailure("Unexpected state: \(state)") }
388 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:428:21: error: value of type 'RunLoop' has no member 'run'
426 |
427 | // RunLoop.run(mode:before:) should have @discardableResult <rdar://problem/45371901>
428 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: timeIntervalToRun))
| `- error: value of type 'RunLoop' has no member 'run'
429 | }
430 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:428:32: error: cannot infer contextual base in reference to member 'default'
426 |
427 | // RunLoop.run(mode:before:) should have @discardableResult <rdar://problem/45371901>
428 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: timeIntervalToRun))
| `- error: cannot infer contextual base in reference to member 'default'
429 | }
430 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:436:17: error: value of type 'RunLoop' has no member '_stop'
434 | CFRunLoopStop(runLoop.getCFRunLoop())
435 | #else
436 | runLoop._stop()
| `- error: value of type 'RunLoop' has no member '_stop'
437 | #endif
438 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:468:9: error: cannot find 'dispatchPrecondition' in scope
466 |
467 | func queue_handleWatchdogTimeout() {
468 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
469 |
470 | queue_validateExpectationFulfillment(dueToTimeout: true)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:468:42: error: cannot infer contextual base in reference to member 'onQueue'
466 |
467 | func queue_handleWatchdogTimeout() {
468 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
469 |
470 | queue_validateExpectationFulfillment(dueToTimeout: true)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:476:9: error: cannot find 'dispatchPrecondition' in scope
474 |
475 | func queue_interrupt(for interruptingWaiter: XCTWaiter) {
476 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
477 |
478 | queue_finish(result: .interrupted, cancelPrimitiveWait: true) { delegate in
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:476:42: error: cannot infer contextual base in reference to member 'onQueue'
474 |
475 | func queue_interrupt(for interruptingWaiter: XCTWaiter) {
476 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
477 |
478 | queue_finish(result: .interrupted, cancelPrimitiveWait: true) { delegate in
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:48:22: error: cannot find 'Thread' in scope
46 | @preconcurrency @MainActor
47 | func waitForExpectations(timeout: TimeInterval, file: StaticString = #file, line: Int = #line, handler: XCWaitCompletionHandler? = nil) {
48 | precondition(Thread.isMainThread, "\(#function) must be called on the main thread")
| `- error: cannot find 'Thread' in scope
49 | if currentWaiter != nil {
50 | return recordFailure(description: "API violation - calling wait on test case while already waiting.", at: SourceLocation(file: file, line: line), expected: false)
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:19:9: error: cannot find 'dispatchPrecondition' in scope
17 | private static var currentMonotonicallyIncreasingToken: UInt64 = 0
18 | private static func queue_nextMonotonicallyIncreasingToken() -> UInt64 {
19 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
20 | currentMonotonicallyIncreasingToken += 1
21 | return currentMonotonicallyIncreasingToken
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:19:42: error: cannot infer contextual base in reference to member 'onQueue'
17 | private static var currentMonotonicallyIncreasingToken: UInt64 = 0
18 | private static func queue_nextMonotonicallyIncreasingToken() -> UInt64 {
19 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
20 | currentMonotonicallyIncreasingToken += 1
21 | return currentMonotonicallyIncreasingToken
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:152:13: error: cannot find 'dispatchPrecondition' in scope
150 | internal var queue_expectationDescription: String {
151 | get {
152 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
153 | return _expectationDescription
154 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:152:46: error: cannot infer contextual base in reference to member 'onQueue'
150 | internal var queue_expectationDescription: String {
151 | get {
152 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
153 | return _expectationDescription
154 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:156:13: error: cannot find 'dispatchPrecondition' in scope
154 | }
155 | set {
156 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
157 | _expectationDescription = newValue
158 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:156:46: error: cannot infer contextual base in reference to member 'onQueue'
154 | }
155 | set {
156 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
157 | _expectationDescription = newValue
158 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:162:13: error: cannot find 'dispatchPrecondition' in scope
160 | internal var queue_isFulfilled: Bool {
161 | get {
162 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
163 | return isFulfilled
164 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:162:46: error: cannot infer contextual base in reference to member 'onQueue'
160 | internal var queue_isFulfilled: Bool {
161 | get {
162 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
163 | return isFulfilled
164 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:166:13: error: cannot find 'dispatchPrecondition' in scope
164 | }
165 | set {
166 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
167 | isFulfilled = newValue
168 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:166:46: error: cannot infer contextual base in reference to member 'onQueue'
164 | }
165 | set {
166 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
167 | isFulfilled = newValue
168 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:172:13: error: cannot find 'dispatchPrecondition' in scope
170 | internal var queue_fulfillmentToken: UInt64 {
171 | get {
172 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
173 | return fulfillmentToken
174 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:172:46: error: cannot infer contextual base in reference to member 'onQueue'
170 | internal var queue_fulfillmentToken: UInt64 {
171 | get {
172 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
173 | return fulfillmentToken
174 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:176:13: error: cannot find 'dispatchPrecondition' in scope
174 | }
175 | set {
176 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
177 | fulfillmentToken = newValue
178 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:176:46: error: cannot infer contextual base in reference to member 'onQueue'
174 | }
175 | set {
176 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
177 | fulfillmentToken = newValue
178 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:182:13: error: cannot find 'dispatchPrecondition' in scope
180 | internal var queue_expectedFulfillmentCount: Int {
181 | get {
182 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
183 | return _expectedFulfillmentCount
184 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:182:46: error: cannot infer contextual base in reference to member 'onQueue'
180 | internal var queue_expectedFulfillmentCount: Int {
181 | get {
182 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
183 | return _expectedFulfillmentCount
184 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:186:13: error: cannot find 'dispatchPrecondition' in scope
184 | }
185 | set {
186 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
187 | _expectedFulfillmentCount = newValue
188 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:186:46: error: cannot infer contextual base in reference to member 'onQueue'
184 | }
185 | set {
186 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
187 | _expectedFulfillmentCount = newValue
188 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:192:13: error: cannot find 'dispatchPrecondition' in scope
190 | internal var queue_isInverted: Bool {
191 | get {
192 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
193 | return _isInverted
194 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:192:46: error: cannot infer contextual base in reference to member 'onQueue'
190 | internal var queue_isInverted: Bool {
191 | get {
192 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
193 | return _isInverted
194 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:196:13: error: cannot find 'dispatchPrecondition' in scope
194 | }
195 | set {
196 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
197 | _isInverted = newValue
198 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:196:46: error: cannot infer contextual base in reference to member 'onQueue'
194 | }
195 | set {
196 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
197 | _isInverted = newValue
198 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:202:13: error: cannot find 'dispatchPrecondition' in scope
200 | internal var queue_hasBeenWaitedOn: Bool {
201 | get {
202 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
203 | return _hasBeenWaitedOn
204 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:202:46: error: cannot infer contextual base in reference to member 'onQueue'
200 | internal var queue_hasBeenWaitedOn: Bool {
201 | get {
202 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
203 | return _hasBeenWaitedOn
204 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:206:13: error: cannot find 'dispatchPrecondition' in scope
204 | }
205 | set {
206 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
207 | _hasBeenWaitedOn = newValue
208 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:206:46: error: cannot infer contextual base in reference to member 'onQueue'
204 | }
205 | set {
206 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
207 | _hasBeenWaitedOn = newValue
208 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:216:13: error: cannot find 'dispatchPrecondition' in scope
214 | internal var queue_didFulfillHandler: (() -> Void)? {
215 | get {
216 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
217 | return _didFulfillHandler
218 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:216:46: error: cannot infer contextual base in reference to member 'onQueue'
214 | internal var queue_didFulfillHandler: (() -> Void)? {
215 | get {
216 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
217 | return _didFulfillHandler
218 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:220:13: error: cannot find 'dispatchPrecondition' in scope
218 | }
219 | set {
220 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
221 | _didFulfillHandler = newValue
222 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:220:46: error: cannot infer contextual base in reference to member 'onQueue'
218 | }
219 | set {
220 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
221 | _didFulfillHandler = newValue
222 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:269:24: error: 'nil' requires a contextual type
267 | expected: false)
268 |
269 | return nil
| `- error: 'nil' requires a contextual type
270 | }
271 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:283:9: error: cannot find 'dispatchPrecondition' in scope
281 |
282 | private func queue_fulfill(sourceLocation: SourceLocation) -> Bool {
283 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
284 |
285 | numberOfFulfillments += 1
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestExpectation.swift:283:42: error: cannot infer contextual base in reference to member 'onQueue'
281 |
282 | private func queue_fulfill(sourceLocation: SourceLocation) -> Bool {
283 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
284 |
285 | numberOfFulfillments += 1
[16/40] Compiling XCTest PerformanceMeter.swift
[17/40] Compiling XCTest PrintObserver.swift
[18/40] Compiling XCTest SourceLocation.swift
[19/40] Compiling XCTest TestFiltering.swift
[20/40] Compiling XCTest TestListing.swift
[21/40] Compiling XCTest XCTestInternalObservation.swift
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:26:25: error: cannot find 'DispatchQueue' in scope
24 | public typealias Handler = @Sendable (Notification) -> Bool
25 |
26 | private let queue = DispatchQueue(label: "org.swift.XCTest.XCTNSNotificationExpectation")
| `- error: cannot find 'DispatchQueue' in scope
27 |
28 | /// The name of the notification being waited on.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:16:12: warning: class 'XCTNSNotificationExpectation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | /// Expectation subclass for waiting on a condition defined by a Foundation Notification instance.
16 | open class XCTNSNotificationExpectation: XCTestExpectation {
| `- warning: class 'XCTNSNotificationExpectation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// A closure to be invoked when a notification specified by the expectation is observed.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:51:13: error: cannot find 'dispatchPrecondition' in scope
49 | }
50 | set {
51 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot find 'dispatchPrecondition' in scope
52 | queue.async { self._handler = newValue }
53 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:51:46: error: cannot infer contextual base in reference to member 'notOnQueue'
49 | }
50 | set {
51 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot infer contextual base in reference to member 'notOnQueue'
52 | queue.async { self._handler = newValue }
53 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:39: error: no exact matches in call to instance method 'addObserver'
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| |- error: no exact matches in call to instance method 'addObserver'
| |- note: found candidate with type '(Message.Subject?, Message.Type, @escaping @Sendable (Message) async -> Void) -> NotificationCenter.ObservationToken'
| `- note: found candidate with type '(Message.Subject?, Message.Type, @escaping @MainActor (Message) -> Void) -> NotificationCenter.ObservationToken'
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:39: error: value of type 'NotificationCenter.ObservationToken' expected to be an instance of a class or class-constrained type in assignment
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| `- error: value of type 'NotificationCenter.ObservationToken' expected to be an instance of a class or class-constrained type in assignment
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:109: error: 'nil' requires a contextual type
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| `- error: 'nil' requires a contextual type
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:128: error: cannot infer type of closure parameter 'notification' without a type annotation
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| `- error: cannot infer type of closure parameter 'notification' without a type annotation
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:106:51: error: cannot convert value of type 'AnyObject' to expected argument type 'NotificationCenter.ObservationToken'
104 | queue.sync {
105 | if let observer = observer {
106 | notificationCenter.removeObserver(observer)
| `- error: cannot convert value of type 'AnyObject' to expected argument type 'NotificationCenter.ObservationToken'
107 | self.observer = nil
108 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:25:25: error: cannot find 'DispatchQueue' in scope
23 | public typealias Handler = @Sendable () -> Bool
24 |
25 | private let queue = DispatchQueue(label: "org.swift.XCTest.XCTNSPredicateExpectation")
| `- error: cannot find 'DispatchQueue' in scope
26 |
27 | /// The predicate used by the expectation.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:49:35: error: 'current' is unavailable: RunLoop is not available on WASI
47 | }
48 |
49 | private let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
50 | private var timer: Timer?
51 | private let evaluationInterval = 0.01
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:16:12: warning: class 'XCTNSPredicateExpectation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | /// Expectation subclass for waiting on a condition defined by an NSPredicate and an optional object.
16 | open class XCTNSPredicateExpectation: XCTestExpectation {
| `- warning: class 'XCTNSPredicateExpectation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// A closure to be invoked whenever evaluating the predicate against the object returns true.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:44:13: error: cannot find 'dispatchPrecondition' in scope
42 | }
43 | set {
44 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot find 'dispatchPrecondition' in scope
45 | queue.async { self._handler = newValue }
46 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:44:46: error: cannot infer contextual base in reference to member 'notOnQueue'
42 | }
43 | set {
44 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot infer contextual base in reference to member 'notOnQueue'
45 | queue.async { self._handler = newValue }
46 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:78:17: error: value of type 'RunLoop' has no member 'perform'
76 |
77 | override func didBeginWaiting() {
78 | runLoop.perform {
| `- error: value of type 'RunLoop' has no member 'perform'
79 | if self.shouldFulfill() {
80 | self.fulfill()
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:100:17: error: value of type 'RunLoop' has no member 'add'
98 | }
99 |
100 | runLoop.add(timer, forMode: .default)
| `- error: value of type 'RunLoop' has no member 'add'
101 | queue.async {
102 | self.timer = timer
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:100:38: error: cannot infer contextual base in reference to member 'default'
98 | }
99 |
100 | runLoop.add(timer, forMode: .default)
| `- error: cannot infer contextual base in reference to member 'default'
101 | queue.async {
102 | self.timer = timer
[22/40] Compiling XCTest XCTNSNotificationExpectation.swift
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:26:25: error: cannot find 'DispatchQueue' in scope
24 | public typealias Handler = @Sendable (Notification) -> Bool
25 |
26 | private let queue = DispatchQueue(label: "org.swift.XCTest.XCTNSNotificationExpectation")
| `- error: cannot find 'DispatchQueue' in scope
27 |
28 | /// The name of the notification being waited on.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:16:12: warning: class 'XCTNSNotificationExpectation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | /// Expectation subclass for waiting on a condition defined by a Foundation Notification instance.
16 | open class XCTNSNotificationExpectation: XCTestExpectation {
| `- warning: class 'XCTNSNotificationExpectation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// A closure to be invoked when a notification specified by the expectation is observed.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:51:13: error: cannot find 'dispatchPrecondition' in scope
49 | }
50 | set {
51 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot find 'dispatchPrecondition' in scope
52 | queue.async { self._handler = newValue }
53 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:51:46: error: cannot infer contextual base in reference to member 'notOnQueue'
49 | }
50 | set {
51 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot infer contextual base in reference to member 'notOnQueue'
52 | queue.async { self._handler = newValue }
53 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:39: error: no exact matches in call to instance method 'addObserver'
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| |- error: no exact matches in call to instance method 'addObserver'
| |- note: found candidate with type '(Message.Subject?, Message.Type, @escaping @Sendable (Message) async -> Void) -> NotificationCenter.ObservationToken'
| `- note: found candidate with type '(Message.Subject?, Message.Type, @escaping @MainActor (Message) -> Void) -> NotificationCenter.ObservationToken'
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:39: error: value of type 'NotificationCenter.ObservationToken' expected to be an instance of a class or class-constrained type in assignment
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| `- error: value of type 'NotificationCenter.ObservationToken' expected to be an instance of a class or class-constrained type in assignment
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:109: error: 'nil' requires a contextual type
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| `- error: 'nil' requires a contextual type
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:128: error: cannot infer type of closure parameter 'notification' without a type annotation
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| `- error: cannot infer type of closure parameter 'notification' without a type annotation
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:106:51: error: cannot convert value of type 'AnyObject' to expected argument type 'NotificationCenter.ObservationToken'
104 | queue.sync {
105 | if let observer = observer {
106 | notificationCenter.removeObserver(observer)
| `- error: cannot convert value of type 'AnyObject' to expected argument type 'NotificationCenter.ObservationToken'
107 | self.observer = nil
108 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:25:25: error: cannot find 'DispatchQueue' in scope
23 | public typealias Handler = @Sendable () -> Bool
24 |
25 | private let queue = DispatchQueue(label: "org.swift.XCTest.XCTNSPredicateExpectation")
| `- error: cannot find 'DispatchQueue' in scope
26 |
27 | /// The predicate used by the expectation.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:49:35: error: 'current' is unavailable: RunLoop is not available on WASI
47 | }
48 |
49 | private let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
50 | private var timer: Timer?
51 | private let evaluationInterval = 0.01
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:16:12: warning: class 'XCTNSPredicateExpectation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | /// Expectation subclass for waiting on a condition defined by an NSPredicate and an optional object.
16 | open class XCTNSPredicateExpectation: XCTestExpectation {
| `- warning: class 'XCTNSPredicateExpectation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// A closure to be invoked whenever evaluating the predicate against the object returns true.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:44:13: error: cannot find 'dispatchPrecondition' in scope
42 | }
43 | set {
44 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot find 'dispatchPrecondition' in scope
45 | queue.async { self._handler = newValue }
46 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:44:46: error: cannot infer contextual base in reference to member 'notOnQueue'
42 | }
43 | set {
44 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot infer contextual base in reference to member 'notOnQueue'
45 | queue.async { self._handler = newValue }
46 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:78:17: error: value of type 'RunLoop' has no member 'perform'
76 |
77 | override func didBeginWaiting() {
78 | runLoop.perform {
| `- error: value of type 'RunLoop' has no member 'perform'
79 | if self.shouldFulfill() {
80 | self.fulfill()
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:100:17: error: value of type 'RunLoop' has no member 'add'
98 | }
99 |
100 | runLoop.add(timer, forMode: .default)
| `- error: value of type 'RunLoop' has no member 'add'
101 | queue.async {
102 | self.timer = timer
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:100:38: error: cannot infer contextual base in reference to member 'default'
98 | }
99 |
100 | runLoop.add(timer, forMode: .default)
| `- error: cannot infer contextual base in reference to member 'default'
101 | queue.async {
102 | self.timer = timer
[23/40] Compiling XCTest XCTNSPredicateExpectation.swift
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:26:25: error: cannot find 'DispatchQueue' in scope
24 | public typealias Handler = @Sendable (Notification) -> Bool
25 |
26 | private let queue = DispatchQueue(label: "org.swift.XCTest.XCTNSNotificationExpectation")
| `- error: cannot find 'DispatchQueue' in scope
27 |
28 | /// The name of the notification being waited on.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:16:12: warning: class 'XCTNSNotificationExpectation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | /// Expectation subclass for waiting on a condition defined by a Foundation Notification instance.
16 | open class XCTNSNotificationExpectation: XCTestExpectation {
| `- warning: class 'XCTNSNotificationExpectation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// A closure to be invoked when a notification specified by the expectation is observed.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:51:13: error: cannot find 'dispatchPrecondition' in scope
49 | }
50 | set {
51 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot find 'dispatchPrecondition' in scope
52 | queue.async { self._handler = newValue }
53 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:51:46: error: cannot infer contextual base in reference to member 'notOnQueue'
49 | }
50 | set {
51 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot infer contextual base in reference to member 'notOnQueue'
52 | queue.async { self._handler = newValue }
53 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:39: error: no exact matches in call to instance method 'addObserver'
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| |- error: no exact matches in call to instance method 'addObserver'
| |- note: found candidate with type '(Message.Subject?, Message.Type, @escaping @Sendable (Message) async -> Void) -> NotificationCenter.ObservationToken'
| `- note: found candidate with type '(Message.Subject?, Message.Type, @escaping @MainActor (Message) -> Void) -> NotificationCenter.ObservationToken'
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:39: error: value of type 'NotificationCenter.ObservationToken' expected to be an instance of a class or class-constrained type in assignment
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| `- error: value of type 'NotificationCenter.ObservationToken' expected to be an instance of a class or class-constrained type in assignment
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:109: error: 'nil' requires a contextual type
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| `- error: 'nil' requires a contextual type
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:128: error: cannot infer type of closure parameter 'notification' without a type annotation
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| `- error: cannot infer type of closure parameter 'notification' without a type annotation
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:106:51: error: cannot convert value of type 'AnyObject' to expected argument type 'NotificationCenter.ObservationToken'
104 | queue.sync {
105 | if let observer = observer {
106 | notificationCenter.removeObserver(observer)
| `- error: cannot convert value of type 'AnyObject' to expected argument type 'NotificationCenter.ObservationToken'
107 | self.observer = nil
108 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:25:25: error: cannot find 'DispatchQueue' in scope
23 | public typealias Handler = @Sendable () -> Bool
24 |
25 | private let queue = DispatchQueue(label: "org.swift.XCTest.XCTNSPredicateExpectation")
| `- error: cannot find 'DispatchQueue' in scope
26 |
27 | /// The predicate used by the expectation.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:49:35: error: 'current' is unavailable: RunLoop is not available on WASI
47 | }
48 |
49 | private let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
50 | private var timer: Timer?
51 | private let evaluationInterval = 0.01
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:16:12: warning: class 'XCTNSPredicateExpectation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | /// Expectation subclass for waiting on a condition defined by an NSPredicate and an optional object.
16 | open class XCTNSPredicateExpectation: XCTestExpectation {
| `- warning: class 'XCTNSPredicateExpectation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// A closure to be invoked whenever evaluating the predicate against the object returns true.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:44:13: error: cannot find 'dispatchPrecondition' in scope
42 | }
43 | set {
44 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot find 'dispatchPrecondition' in scope
45 | queue.async { self._handler = newValue }
46 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:44:46: error: cannot infer contextual base in reference to member 'notOnQueue'
42 | }
43 | set {
44 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot infer contextual base in reference to member 'notOnQueue'
45 | queue.async { self._handler = newValue }
46 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:78:17: error: value of type 'RunLoop' has no member 'perform'
76 |
77 | override func didBeginWaiting() {
78 | runLoop.perform {
| `- error: value of type 'RunLoop' has no member 'perform'
79 | if self.shouldFulfill() {
80 | self.fulfill()
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:100:17: error: value of type 'RunLoop' has no member 'add'
98 | }
99 |
100 | runLoop.add(timer, forMode: .default)
| `- error: value of type 'RunLoop' has no member 'add'
101 | queue.async {
102 | self.timer = timer
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:100:38: error: cannot infer contextual base in reference to member 'default'
98 | }
99 |
100 | runLoop.add(timer, forMode: .default)
| `- error: cannot infer contextual base in reference to member 'default'
101 | queue.async {
102 | self.timer = timer
[24/40] Compiling XCTest XCTWaiter+Validation.swift
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:26:25: error: cannot find 'DispatchQueue' in scope
24 | public typealias Handler = @Sendable (Notification) -> Bool
25 |
26 | private let queue = DispatchQueue(label: "org.swift.XCTest.XCTNSNotificationExpectation")
| `- error: cannot find 'DispatchQueue' in scope
27 |
28 | /// The name of the notification being waited on.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:16:12: warning: class 'XCTNSNotificationExpectation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | /// Expectation subclass for waiting on a condition defined by a Foundation Notification instance.
16 | open class XCTNSNotificationExpectation: XCTestExpectation {
| `- warning: class 'XCTNSNotificationExpectation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// A closure to be invoked when a notification specified by the expectation is observed.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:51:13: error: cannot find 'dispatchPrecondition' in scope
49 | }
50 | set {
51 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot find 'dispatchPrecondition' in scope
52 | queue.async { self._handler = newValue }
53 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:51:46: error: cannot infer contextual base in reference to member 'notOnQueue'
49 | }
50 | set {
51 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot infer contextual base in reference to member 'notOnQueue'
52 | queue.async { self._handler = newValue }
53 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:39: error: no exact matches in call to instance method 'addObserver'
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| |- error: no exact matches in call to instance method 'addObserver'
| |- note: found candidate with type '(Message.Subject?, Message.Type, @escaping @Sendable (Message) async -> Void) -> NotificationCenter.ObservationToken'
| `- note: found candidate with type '(Message.Subject?, Message.Type, @escaping @MainActor (Message) -> Void) -> NotificationCenter.ObservationToken'
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:39: error: value of type 'NotificationCenter.ObservationToken' expected to be an instance of a class or class-constrained type in assignment
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| `- error: value of type 'NotificationCenter.ObservationToken' expected to be an instance of a class or class-constrained type in assignment
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:109: error: 'nil' requires a contextual type
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| `- error: 'nil' requires a contextual type
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:85:128: error: cannot infer type of closure parameter 'notification' without a type annotation
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
| `- error: cannot infer type of closure parameter 'notification' without a type annotation
86 | guard let strongSelf = self else { return }
87 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:106:51: error: cannot convert value of type 'AnyObject' to expected argument type 'NotificationCenter.ObservationToken'
104 | queue.sync {
105 | if let observer = observer {
106 | notificationCenter.removeObserver(observer)
| `- error: cannot convert value of type 'AnyObject' to expected argument type 'NotificationCenter.ObservationToken'
107 | self.observer = nil
108 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:25:25: error: cannot find 'DispatchQueue' in scope
23 | public typealias Handler = @Sendable () -> Bool
24 |
25 | private let queue = DispatchQueue(label: "org.swift.XCTest.XCTNSPredicateExpectation")
| `- error: cannot find 'DispatchQueue' in scope
26 |
27 | /// The predicate used by the expectation.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:49:35: error: 'current' is unavailable: RunLoop is not available on WASI
47 | }
48 |
49 | private let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
50 | private var timer: Timer?
51 | private let evaluationInterval = 0.01
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:16:12: warning: class 'XCTNSPredicateExpectation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | /// Expectation subclass for waiting on a condition defined by an NSPredicate and an optional object.
16 | open class XCTNSPredicateExpectation: XCTestExpectation {
| `- warning: class 'XCTNSPredicateExpectation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// A closure to be invoked whenever evaluating the predicate against the object returns true.
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:44:13: error: cannot find 'dispatchPrecondition' in scope
42 | }
43 | set {
44 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot find 'dispatchPrecondition' in scope
45 | queue.async { self._handler = newValue }
46 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:44:46: error: cannot infer contextual base in reference to member 'notOnQueue'
42 | }
43 | set {
44 | dispatchPrecondition(condition: .notOnQueue(queue))
| `- error: cannot infer contextual base in reference to member 'notOnQueue'
45 | queue.async { self._handler = newValue }
46 | }
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:78:17: error: value of type 'RunLoop' has no member 'perform'
76 |
77 | override func didBeginWaiting() {
78 | runLoop.perform {
| `- error: value of type 'RunLoop' has no member 'perform'
79 | if self.shouldFulfill() {
80 | self.fulfill()
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:100:17: error: value of type 'RunLoop' has no member 'add'
98 | }
99 |
100 | runLoop.add(timer, forMode: .default)
| `- error: value of type 'RunLoop' has no member 'add'
101 | queue.async {
102 | self.timer = timer
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift:100:38: error: cannot infer contextual base in reference to member 'default'
98 | }
99 |
100 | runLoop.add(timer, forMode: .default)
| `- error: cannot infer contextual base in reference to member 'default'
101 | queue.async {
102 | self.timer = timer
[25/40] Compiling XCTest WaiterManager.swift
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:25:11: error: cannot find type 'DispatchWorkItem' in scope
23 | func cancel()
24 | }
25 | extension DispatchWorkItem: ManageableWaiterWatchdog {}
| `- error: cannot find type 'DispatchWorkItem' in scope
26 |
27 | /// This class manages the XCTWaiter instances which are currently waiting on a particular thread.
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:53:31: error: cannot find 'Thread' in scope
51 |
52 | private var managedWaiterStack = [ManagedWaiterDetails]()
53 | private weak var thread = Thread.current
| `- error: cannot find 'Thread' in scope
54 | private let queue = DispatchQueue(label: "org.swift.XCTest.WaiterManager")
55 |
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:54:25: error: cannot find 'DispatchQueue' in scope
52 | private var managedWaiterStack = [ManagedWaiterDetails]()
53 | private weak var thread = Thread.current
54 | private let queue = DispatchQueue(label: "org.swift.XCTest.WaiterManager")
| `- error: cannot find 'DispatchQueue' in scope
55 |
56 | // Use `WaiterManager.current` to access the thread-specific instance
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:38:27: error: cannot find 'Thread' in scope
36 | let threadKey = "org.swift.XCTest.WaiterManager"
37 |
38 | if let existing = Thread.current.threadDictionary[threadKey] as? WaiterManager {
| `- error: cannot find 'Thread' in scope
39 | return existing
40 | } else {
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:42:13: error: cannot find 'Thread' in scope
40 | } else {
41 | let manager = WaiterManager()
42 | Thread.current.threadDictionary[threadKey] = manager
| `- error: cannot find 'Thread' in scope
43 | return manager
44 | }
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:65:33: error: cannot find 'Thread' in scope
63 | func startManaging(_ waiter: WaiterType, timeout: TimeInterval) {
64 | guard let thread = thread else { fatalError("\(self) no longer belongs to a thread") }
65 | precondition(thread === Thread.current, "\(#function) called on wrong thread, must be called on \(thread)")
| `- error: cannot find 'Thread' in scope
66 |
67 | var alreadyFinishedOuterWaiter: WaiterType?
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:116:42: error: cannot find 'DispatchQueue' in scope
114 | }
115 |
116 | internal static let subsystemQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter")
| `- error: cannot find 'DispatchQueue' in scope
117 |
118 | private var state = State.ready
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:99:33: error: cannot find 'Thread' in scope
97 | func stopManaging(_ waiter: WaiterType) {
98 | guard let thread = thread else { fatalError("\(self) no longer belongs to a thread") }
99 | precondition(thread === Thread.current, "\(#function) called on wrong thread, must be called on \(thread)")
| `- error: cannot find 'Thread' in scope
100 |
101 | queue.sync {
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:117:24: error: cannot find 'DispatchWorkItem' in scope
115 | private static func installWatchdog(for waiter: WaiterType, timeout: TimeInterval) -> ManageableWaiterWatchdog {
116 | // Use DispatchWorkItem instead of a basic closure since it can be canceled.
117 | let watchdog = DispatchWorkItem { [weak waiter] in
| `- error: cannot find 'DispatchWorkItem' in scope
118 | waiter?.queue_handleWatchdogTimeout()
119 | }
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:122:24: error: cannot find 'DispatchTime' in scope
120 |
121 | let outerTimeoutSlop = TimeInterval(0.25)
122 | let deadline = DispatchTime.now() + timeout + outerTimeoutSlop
| `- error: cannot find 'DispatchTime' in scope
123 | XCTWaiter.subsystemQueue.asyncAfter(deadline: deadline, execute: watchdog)
124 |
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:129:9: error: cannot find 'dispatchPrecondition' in scope
127 |
128 | func queue_handleWatchdogTimeout(of waiter: WaiterType) {
129 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
130 |
131 | var waitersToInterrupt = [WaiterType]()
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:129:42: error: cannot infer contextual base in reference to member 'onQueue'
127 |
128 | func queue_handleWatchdogTimeout(of waiter: WaiterType) {
129 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
130 |
131 | var waitersToInterrupt = [WaiterType]()
/host/spi-builder-workspace/Sources/XCTest/Public/XCTestCase.swift:70:32: error: cannot find type 'DispatchQueue' in scope
68 | }
69 | #else
70 | typealias SubsystemQueue = DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
71 | #endif
72 |
[26/40] Compiling XCTest WallClockTimeMetric.swift
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:25:11: error: cannot find type 'DispatchWorkItem' in scope
23 | func cancel()
24 | }
25 | extension DispatchWorkItem: ManageableWaiterWatchdog {}
| `- error: cannot find type 'DispatchWorkItem' in scope
26 |
27 | /// This class manages the XCTWaiter instances which are currently waiting on a particular thread.
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:53:31: error: cannot find 'Thread' in scope
51 |
52 | private var managedWaiterStack = [ManagedWaiterDetails]()
53 | private weak var thread = Thread.current
| `- error: cannot find 'Thread' in scope
54 | private let queue = DispatchQueue(label: "org.swift.XCTest.WaiterManager")
55 |
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:54:25: error: cannot find 'DispatchQueue' in scope
52 | private var managedWaiterStack = [ManagedWaiterDetails]()
53 | private weak var thread = Thread.current
54 | private let queue = DispatchQueue(label: "org.swift.XCTest.WaiterManager")
| `- error: cannot find 'DispatchQueue' in scope
55 |
56 | // Use `WaiterManager.current` to access the thread-specific instance
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:38:27: error: cannot find 'Thread' in scope
36 | let threadKey = "org.swift.XCTest.WaiterManager"
37 |
38 | if let existing = Thread.current.threadDictionary[threadKey] as? WaiterManager {
| `- error: cannot find 'Thread' in scope
39 | return existing
40 | } else {
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:42:13: error: cannot find 'Thread' in scope
40 | } else {
41 | let manager = WaiterManager()
42 | Thread.current.threadDictionary[threadKey] = manager
| `- error: cannot find 'Thread' in scope
43 | return manager
44 | }
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:65:33: error: cannot find 'Thread' in scope
63 | func startManaging(_ waiter: WaiterType, timeout: TimeInterval) {
64 | guard let thread = thread else { fatalError("\(self) no longer belongs to a thread") }
65 | precondition(thread === Thread.current, "\(#function) called on wrong thread, must be called on \(thread)")
| `- error: cannot find 'Thread' in scope
66 |
67 | var alreadyFinishedOuterWaiter: WaiterType?
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:116:42: error: cannot find 'DispatchQueue' in scope
114 | }
115 |
116 | internal static let subsystemQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter")
| `- error: cannot find 'DispatchQueue' in scope
117 |
118 | private var state = State.ready
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:99:33: error: cannot find 'Thread' in scope
97 | func stopManaging(_ waiter: WaiterType) {
98 | guard let thread = thread else { fatalError("\(self) no longer belongs to a thread") }
99 | precondition(thread === Thread.current, "\(#function) called on wrong thread, must be called on \(thread)")
| `- error: cannot find 'Thread' in scope
100 |
101 | queue.sync {
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:117:24: error: cannot find 'DispatchWorkItem' in scope
115 | private static func installWatchdog(for waiter: WaiterType, timeout: TimeInterval) -> ManageableWaiterWatchdog {
116 | // Use DispatchWorkItem instead of a basic closure since it can be canceled.
117 | let watchdog = DispatchWorkItem { [weak waiter] in
| `- error: cannot find 'DispatchWorkItem' in scope
118 | waiter?.queue_handleWatchdogTimeout()
119 | }
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:122:24: error: cannot find 'DispatchTime' in scope
120 |
121 | let outerTimeoutSlop = TimeInterval(0.25)
122 | let deadline = DispatchTime.now() + timeout + outerTimeoutSlop
| `- error: cannot find 'DispatchTime' in scope
123 | XCTWaiter.subsystemQueue.asyncAfter(deadline: deadline, execute: watchdog)
124 |
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:129:9: error: cannot find 'dispatchPrecondition' in scope
127 |
128 | func queue_handleWatchdogTimeout(of waiter: WaiterType) {
129 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
130 |
131 | var waitersToInterrupt = [WaiterType]()
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:129:42: error: cannot infer contextual base in reference to member 'onQueue'
127 |
128 | func queue_handleWatchdogTimeout(of waiter: WaiterType) {
129 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
130 |
131 | var waitersToInterrupt = [WaiterType]()
/host/spi-builder-workspace/Sources/XCTest/Public/XCTestCase.swift:70:32: error: cannot find type 'DispatchQueue' in scope
68 | }
69 | #else
70 | typealias SubsystemQueue = DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
71 | #endif
72 |
[27/40] Compiling XCTest XCTestCase.TearDownBlocksState.swift
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:25:11: error: cannot find type 'DispatchWorkItem' in scope
23 | func cancel()
24 | }
25 | extension DispatchWorkItem: ManageableWaiterWatchdog {}
| `- error: cannot find type 'DispatchWorkItem' in scope
26 |
27 | /// This class manages the XCTWaiter instances which are currently waiting on a particular thread.
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:53:31: error: cannot find 'Thread' in scope
51 |
52 | private var managedWaiterStack = [ManagedWaiterDetails]()
53 | private weak var thread = Thread.current
| `- error: cannot find 'Thread' in scope
54 | private let queue = DispatchQueue(label: "org.swift.XCTest.WaiterManager")
55 |
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:54:25: error: cannot find 'DispatchQueue' in scope
52 | private var managedWaiterStack = [ManagedWaiterDetails]()
53 | private weak var thread = Thread.current
54 | private let queue = DispatchQueue(label: "org.swift.XCTest.WaiterManager")
| `- error: cannot find 'DispatchQueue' in scope
55 |
56 | // Use `WaiterManager.current` to access the thread-specific instance
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:38:27: error: cannot find 'Thread' in scope
36 | let threadKey = "org.swift.XCTest.WaiterManager"
37 |
38 | if let existing = Thread.current.threadDictionary[threadKey] as? WaiterManager {
| `- error: cannot find 'Thread' in scope
39 | return existing
40 | } else {
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:42:13: error: cannot find 'Thread' in scope
40 | } else {
41 | let manager = WaiterManager()
42 | Thread.current.threadDictionary[threadKey] = manager
| `- error: cannot find 'Thread' in scope
43 | return manager
44 | }
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:65:33: error: cannot find 'Thread' in scope
63 | func startManaging(_ waiter: WaiterType, timeout: TimeInterval) {
64 | guard let thread = thread else { fatalError("\(self) no longer belongs to a thread") }
65 | precondition(thread === Thread.current, "\(#function) called on wrong thread, must be called on \(thread)")
| `- error: cannot find 'Thread' in scope
66 |
67 | var alreadyFinishedOuterWaiter: WaiterType?
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:116:42: error: cannot find 'DispatchQueue' in scope
114 | }
115 |
116 | internal static let subsystemQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter")
| `- error: cannot find 'DispatchQueue' in scope
117 |
118 | private var state = State.ready
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:99:33: error: cannot find 'Thread' in scope
97 | func stopManaging(_ waiter: WaiterType) {
98 | guard let thread = thread else { fatalError("\(self) no longer belongs to a thread") }
99 | precondition(thread === Thread.current, "\(#function) called on wrong thread, must be called on \(thread)")
| `- error: cannot find 'Thread' in scope
100 |
101 | queue.sync {
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:117:24: error: cannot find 'DispatchWorkItem' in scope
115 | private static func installWatchdog(for waiter: WaiterType, timeout: TimeInterval) -> ManageableWaiterWatchdog {
116 | // Use DispatchWorkItem instead of a basic closure since it can be canceled.
117 | let watchdog = DispatchWorkItem { [weak waiter] in
| `- error: cannot find 'DispatchWorkItem' in scope
118 | waiter?.queue_handleWatchdogTimeout()
119 | }
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:122:24: error: cannot find 'DispatchTime' in scope
120 |
121 | let outerTimeoutSlop = TimeInterval(0.25)
122 | let deadline = DispatchTime.now() + timeout + outerTimeoutSlop
| `- error: cannot find 'DispatchTime' in scope
123 | XCTWaiter.subsystemQueue.asyncAfter(deadline: deadline, execute: watchdog)
124 |
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:129:9: error: cannot find 'dispatchPrecondition' in scope
127 |
128 | func queue_handleWatchdogTimeout(of waiter: WaiterType) {
129 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
130 |
131 | var waitersToInterrupt = [WaiterType]()
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:129:42: error: cannot infer contextual base in reference to member 'onQueue'
127 |
128 | func queue_handleWatchdogTimeout(of waiter: WaiterType) {
129 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
130 |
131 | var waitersToInterrupt = [WaiterType]()
/host/spi-builder-workspace/Sources/XCTest/Public/XCTestCase.swift:70:32: error: cannot find type 'DispatchQueue' in scope
68 | }
69 | #else
70 | typealias SubsystemQueue = DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
71 | #endif
72 |
[28/40] Compiling XCTest XCTestCaseSuite.swift
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:25:11: error: cannot find type 'DispatchWorkItem' in scope
23 | func cancel()
24 | }
25 | extension DispatchWorkItem: ManageableWaiterWatchdog {}
| `- error: cannot find type 'DispatchWorkItem' in scope
26 |
27 | /// This class manages the XCTWaiter instances which are currently waiting on a particular thread.
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:53:31: error: cannot find 'Thread' in scope
51 |
52 | private var managedWaiterStack = [ManagedWaiterDetails]()
53 | private weak var thread = Thread.current
| `- error: cannot find 'Thread' in scope
54 | private let queue = DispatchQueue(label: "org.swift.XCTest.WaiterManager")
55 |
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:54:25: error: cannot find 'DispatchQueue' in scope
52 | private var managedWaiterStack = [ManagedWaiterDetails]()
53 | private weak var thread = Thread.current
54 | private let queue = DispatchQueue(label: "org.swift.XCTest.WaiterManager")
| `- error: cannot find 'DispatchQueue' in scope
55 |
56 | // Use `WaiterManager.current` to access the thread-specific instance
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:38:27: error: cannot find 'Thread' in scope
36 | let threadKey = "org.swift.XCTest.WaiterManager"
37 |
38 | if let existing = Thread.current.threadDictionary[threadKey] as? WaiterManager {
| `- error: cannot find 'Thread' in scope
39 | return existing
40 | } else {
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:42:13: error: cannot find 'Thread' in scope
40 | } else {
41 | let manager = WaiterManager()
42 | Thread.current.threadDictionary[threadKey] = manager
| `- error: cannot find 'Thread' in scope
43 | return manager
44 | }
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:65:33: error: cannot find 'Thread' in scope
63 | func startManaging(_ waiter: WaiterType, timeout: TimeInterval) {
64 | guard let thread = thread else { fatalError("\(self) no longer belongs to a thread") }
65 | precondition(thread === Thread.current, "\(#function) called on wrong thread, must be called on \(thread)")
| `- error: cannot find 'Thread' in scope
66 |
67 | var alreadyFinishedOuterWaiter: WaiterType?
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTWaiter.swift:116:42: error: cannot find 'DispatchQueue' in scope
114 | }
115 |
116 | internal static let subsystemQueue = DispatchQueue(label: "org.swift.XCTest.XCTWaiter")
| `- error: cannot find 'DispatchQueue' in scope
117 |
118 | private var state = State.ready
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:99:33: error: cannot find 'Thread' in scope
97 | func stopManaging(_ waiter: WaiterType) {
98 | guard let thread = thread else { fatalError("\(self) no longer belongs to a thread") }
99 | precondition(thread === Thread.current, "\(#function) called on wrong thread, must be called on \(thread)")
| `- error: cannot find 'Thread' in scope
100 |
101 | queue.sync {
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:117:24: error: cannot find 'DispatchWorkItem' in scope
115 | private static func installWatchdog(for waiter: WaiterType, timeout: TimeInterval) -> ManageableWaiterWatchdog {
116 | // Use DispatchWorkItem instead of a basic closure since it can be canceled.
117 | let watchdog = DispatchWorkItem { [weak waiter] in
| `- error: cannot find 'DispatchWorkItem' in scope
118 | waiter?.queue_handleWatchdogTimeout()
119 | }
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:122:24: error: cannot find 'DispatchTime' in scope
120 |
121 | let outerTimeoutSlop = TimeInterval(0.25)
122 | let deadline = DispatchTime.now() + timeout + outerTimeoutSlop
| `- error: cannot find 'DispatchTime' in scope
123 | XCTWaiter.subsystemQueue.asyncAfter(deadline: deadline, execute: watchdog)
124 |
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:129:9: error: cannot find 'dispatchPrecondition' in scope
127 |
128 | func queue_handleWatchdogTimeout(of waiter: WaiterType) {
129 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot find 'dispatchPrecondition' in scope
130 |
131 | var waitersToInterrupt = [WaiterType]()
/host/spi-builder-workspace/Sources/XCTest/Private/WaiterManager.swift:129:42: error: cannot infer contextual base in reference to member 'onQueue'
127 |
128 | func queue_handleWatchdogTimeout(of waiter: WaiterType) {
129 | dispatchPrecondition(condition: .onQueue(XCTWaiter.subsystemQueue))
| `- error: cannot infer contextual base in reference to member 'onQueue'
130 |
131 | var waitersToInterrupt = [WaiterType]()
/host/spi-builder-workspace/Sources/XCTest/Public/XCTestCase.swift:70:32: error: cannot find type 'DispatchQueue' in scope
68 | }
69 | #else
70 | typealias SubsystemQueue = DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
71 | #endif
72 |
[29/40] Compiling XCTest XCTestCaseRun.swift
[30/40] Compiling XCTest XCTestErrors.swift
[31/40] Compiling XCTest XCTestMain.swift
[32/40] Compiling XCTest XCTestObservation.swift
[33/40] Compiling XCTest ArgumentParser.swift
/host/spi-builder-workspace/Sources/XCTest/Public/XCTestCase.swift:70:32: error: cannot find type 'DispatchQueue' in scope
68 | }
69 | #else
70 | typealias SubsystemQueue = DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
71 | #endif
72 |
[34/40] Compiling XCTest IgnoredErrors.swift
/host/spi-builder-workspace/Sources/XCTest/Public/XCTestCase.swift:70:32: error: cannot find type 'DispatchQueue' in scope
68 | }
69 | #else
70 | typealias SubsystemQueue = DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
71 | #endif
72 |
[35/40] Compiling XCTest InteropHandler.swift
/host/spi-builder-workspace/Sources/XCTest/Public/XCTestCase.swift:70:32: error: cannot find type 'DispatchQueue' in scope
68 | }
69 | #else
70 | typealias SubsystemQueue = DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
71 | #endif
72 |
[36/40] Compiling XCTest InteropRecord.swift
/host/spi-builder-workspace/Sources/XCTest/Public/XCTestCase.swift:70:32: error: cannot find type 'DispatchQueue' in scope
68 | }
69 | #else
70 | typealias SubsystemQueue = DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
71 | #endif
72 |
[37/40] Compiling XCTest ObjectWrapper.swift
/host/spi-builder-workspace/Sources/XCTest/Public/XCTestCase.swift:70:32: error: cannot find type 'DispatchQueue' in scope
68 | }
69 | #else
70 | typealias SubsystemQueue = DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
71 | #endif
72 |
BUILD FAILURE 6.3 wasm