Build Information
Failed to build XCTest, reference main (5c7856
), with Swift 6.1 for Wasm on 30 May 2025 13:46:09 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
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:163:134: error: cannot find type 'NotificationCenter' in scope
161 | /// handler to further investigate if the notification fulfills the
162 | /// expectation.
163 | @discardableResult func expectation(forNotification notificationName: Notification.Name, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
| `- error: cannot find type 'NotificationCenter' in scope
164 | let expectation = XCTNSNotificationExpectation(name: notificationName, object: object, notificationCenter: notificationCenter, file: file, line: line)
165 | expectation.handler = handler
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:184:123: error: cannot find type 'NotificationCenter' in scope
182 | /// handler to further investigate if the notification fulfills the
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
| `- error: cannot find type 'NotificationCenter' in scope
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
186 | }
/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/XCTNSNotificationExpectation.swift:69:99: error: cannot find type 'NotificationCenter' in scope
67 | /// number of the call to this method in the calling file. It is rare to
68 | /// provide this parameter when calling this method.
69 | public init(name notificationName: Notification.Name, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line) {
| `- error: cannot find type 'NotificationCenter' in scope
70 | self.notificationName = notificationName
71 | self.observedObject = object
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:185:27: error: extra arguments at positions #1, #2, #3 in call
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
| `- error: extra arguments at positions #1, #2, #3 in call
186 | }
187 |
:
208 | /// the handler can override that behavior which leaves the caller
209 | /// responsible for fulfilling the expectation.
210 | @discardableResult func expectation(for predicate: NSPredicate, evaluatedWith object: Any? = nil, file: StaticString = #file, line: Int = #line, handler: XCTNSPredicateExpectation.Handler? = nil) -> XCTestExpectation {
| `- note: 'expectation(for:evaluatedWith:file:line:handler:)' declared here
211 | let expectation = XCTNSPredicateExpectation(predicate: predicate, object: object, file: file, line: line)
212 | expectation.handler = handler
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:185:28: error: missing argument for parameter 'for' in call
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
| `- error: missing argument for parameter 'for' in call
186 | }
187 |
:
208 | /// the handler can override that behavior which leaves the caller
209 | /// responsible for fulfilling the expectation.
210 | @discardableResult func expectation(for predicate: NSPredicate, evaluatedWith object: Any? = nil, file: StaticString = #file, line: Int = #line, handler: XCTNSPredicateExpectation.Handler? = nil) -> XCTestExpectation {
| `- note: 'expectation(for:evaluatedWith:file:line:handler:)' declared here
211 | let expectation = XCTNSPredicateExpectation(predicate: predicate, object: object, file: file, line: line)
212 | expectation.handler = handler
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:185:181: error: cannot convert value of type 'XCTNSNotificationExpectation.Handler?' (aka 'Optional<@Sendable (Notification) -> Bool>') to expected argument type 'XCTNSPredicateExpectation.Handler?' (aka 'Optional<@Sendable () -> Bool>')
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
| `- error: cannot convert value of type 'XCTNSNotificationExpectation.Handler?' (aka 'Optional<@Sendable (Notification) -> Bool>') to expected argument type 'XCTNSPredicateExpectation.Handler?' (aka 'Optional<@Sendable () -> Bool>')
186 | }
187 |
/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
[11/37] 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:163:134: error: cannot find type 'NotificationCenter' in scope
161 | /// handler to further investigate if the notification fulfills the
162 | /// expectation.
163 | @discardableResult func expectation(forNotification notificationName: Notification.Name, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
| `- error: cannot find type 'NotificationCenter' in scope
164 | let expectation = XCTNSNotificationExpectation(name: notificationName, object: object, notificationCenter: notificationCenter, file: file, line: line)
165 | expectation.handler = handler
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:184:123: error: cannot find type 'NotificationCenter' in scope
182 | /// handler to further investigate if the notification fulfills the
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
| `- error: cannot find type 'NotificationCenter' in scope
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
186 | }
/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/XCTNSNotificationExpectation.swift:69:99: error: cannot find type 'NotificationCenter' in scope
67 | /// number of the call to this method in the calling file. It is rare to
68 | /// provide this parameter when calling this method.
69 | public init(name notificationName: Notification.Name, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line) {
| `- error: cannot find type 'NotificationCenter' in scope
70 | self.notificationName = notificationName
71 | self.observedObject = object
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:185:27: error: extra arguments at positions #1, #2, #3 in call
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
| `- error: extra arguments at positions #1, #2, #3 in call
186 | }
187 |
:
208 | /// the handler can override that behavior which leaves the caller
209 | /// responsible for fulfilling the expectation.
210 | @discardableResult func expectation(for predicate: NSPredicate, evaluatedWith object: Any? = nil, file: StaticString = #file, line: Int = #line, handler: XCTNSPredicateExpectation.Handler? = nil) -> XCTestExpectation {
| `- note: 'expectation(for:evaluatedWith:file:line:handler:)' declared here
211 | let expectation = XCTNSPredicateExpectation(predicate: predicate, object: object, file: file, line: line)
212 | expectation.handler = handler
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:185:28: error: missing argument for parameter 'for' in call
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
| `- error: missing argument for parameter 'for' in call
186 | }
187 |
:
208 | /// the handler can override that behavior which leaves the caller
209 | /// responsible for fulfilling the expectation.
210 | @discardableResult func expectation(for predicate: NSPredicate, evaluatedWith object: Any? = nil, file: StaticString = #file, line: Int = #line, handler: XCTNSPredicateExpectation.Handler? = nil) -> XCTestExpectation {
| `- note: 'expectation(for:evaluatedWith:file:line:handler:)' declared here
211 | let expectation = XCTNSPredicateExpectation(predicate: predicate, object: object, file: file, line: line)
212 | expectation.handler = handler
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:185:181: error: cannot convert value of type 'XCTNSNotificationExpectation.Handler?' (aka 'Optional<@Sendable (Notification) -> Bool>') to expected argument type 'XCTNSPredicateExpectation.Handler?' (aka 'Optional<@Sendable () -> Bool>')
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
| `- error: cannot convert value of type 'XCTNSNotificationExpectation.Handler?' (aka 'Optional<@Sendable (Notification) -> Bool>') to expected argument type 'XCTNSPredicateExpectation.Handler?' (aka 'Optional<@Sendable () -> Bool>')
186 | }
187 |
/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
[12/37] 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:163:134: error: cannot find type 'NotificationCenter' in scope
161 | /// handler to further investigate if the notification fulfills the
162 | /// expectation.
163 | @discardableResult func expectation(forNotification notificationName: Notification.Name, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
| `- error: cannot find type 'NotificationCenter' in scope
164 | let expectation = XCTNSNotificationExpectation(name: notificationName, object: object, notificationCenter: notificationCenter, file: file, line: line)
165 | expectation.handler = handler
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:184:123: error: cannot find type 'NotificationCenter' in scope
182 | /// handler to further investigate if the notification fulfills the
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
| `- error: cannot find type 'NotificationCenter' in scope
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
186 | }
/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/XCTNSNotificationExpectation.swift:69:99: error: cannot find type 'NotificationCenter' in scope
67 | /// number of the call to this method in the calling file. It is rare to
68 | /// provide this parameter when calling this method.
69 | public init(name notificationName: Notification.Name, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line) {
| `- error: cannot find type 'NotificationCenter' in scope
70 | self.notificationName = notificationName
71 | self.observedObject = object
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:185:27: error: extra arguments at positions #1, #2, #3 in call
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
| `- error: extra arguments at positions #1, #2, #3 in call
186 | }
187 |
:
208 | /// the handler can override that behavior which leaves the caller
209 | /// responsible for fulfilling the expectation.
210 | @discardableResult func expectation(for predicate: NSPredicate, evaluatedWith object: Any? = nil, file: StaticString = #file, line: Int = #line, handler: XCTNSPredicateExpectation.Handler? = nil) -> XCTestExpectation {
| `- note: 'expectation(for:evaluatedWith:file:line:handler:)' declared here
211 | let expectation = XCTNSPredicateExpectation(predicate: predicate, object: object, file: file, line: line)
212 | expectation.handler = handler
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:185:28: error: missing argument for parameter 'for' in call
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
| `- error: missing argument for parameter 'for' in call
186 | }
187 |
:
208 | /// the handler can override that behavior which leaves the caller
209 | /// responsible for fulfilling the expectation.
210 | @discardableResult func expectation(for predicate: NSPredicate, evaluatedWith object: Any? = nil, file: StaticString = #file, line: Int = #line, handler: XCTNSPredicateExpectation.Handler? = nil) -> XCTestExpectation {
| `- note: 'expectation(for:evaluatedWith:file:line:handler:)' declared here
211 | let expectation = XCTNSPredicateExpectation(predicate: predicate, object: object, file: file, line: line)
212 | expectation.handler = handler
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:185:181: error: cannot convert value of type 'XCTNSNotificationExpectation.Handler?' (aka 'Optional<@Sendable (Notification) -> Bool>') to expected argument type 'XCTNSPredicateExpectation.Handler?' (aka 'Optional<@Sendable () -> Bool>')
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
| `- error: cannot convert value of type 'XCTNSNotificationExpectation.Handler?' (aka 'Optional<@Sendable (Notification) -> Bool>') to expected argument type 'XCTNSPredicateExpectation.Handler?' (aka 'Optional<@Sendable () -> Bool>')
186 | }
187 |
/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/37] 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:163:134: error: cannot find type 'NotificationCenter' in scope
161 | /// handler to further investigate if the notification fulfills the
162 | /// expectation.
163 | @discardableResult func expectation(forNotification notificationName: Notification.Name, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
| `- error: cannot find type 'NotificationCenter' in scope
164 | let expectation = XCTNSNotificationExpectation(name: notificationName, object: object, notificationCenter: notificationCenter, file: file, line: line)
165 | expectation.handler = handler
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:184:123: error: cannot find type 'NotificationCenter' in scope
182 | /// handler to further investigate if the notification fulfills the
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
| `- error: cannot find type 'NotificationCenter' in scope
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
186 | }
/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/XCTNSNotificationExpectation.swift:69:99: error: cannot find type 'NotificationCenter' in scope
67 | /// number of the call to this method in the calling file. It is rare to
68 | /// provide this parameter when calling this method.
69 | public init(name notificationName: Notification.Name, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line) {
| `- error: cannot find type 'NotificationCenter' in scope
70 | self.notificationName = notificationName
71 | self.observedObject = object
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:185:27: error: extra arguments at positions #1, #2, #3 in call
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
| `- error: extra arguments at positions #1, #2, #3 in call
186 | }
187 |
:
208 | /// the handler can override that behavior which leaves the caller
209 | /// responsible for fulfilling the expectation.
210 | @discardableResult func expectation(for predicate: NSPredicate, evaluatedWith object: Any? = nil, file: StaticString = #file, line: Int = #line, handler: XCTNSPredicateExpectation.Handler? = nil) -> XCTestExpectation {
| `- note: 'expectation(for:evaluatedWith:file:line:handler:)' declared here
211 | let expectation = XCTNSPredicateExpectation(predicate: predicate, object: object, file: file, line: line)
212 | expectation.handler = handler
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:185:28: error: missing argument for parameter 'for' in call
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
| `- error: missing argument for parameter 'for' in call
186 | }
187 |
:
208 | /// the handler can override that behavior which leaves the caller
209 | /// responsible for fulfilling the expectation.
210 | @discardableResult func expectation(for predicate: NSPredicate, evaluatedWith object: Any? = nil, file: StaticString = #file, line: Int = #line, handler: XCTNSPredicateExpectation.Handler? = nil) -> XCTestExpectation {
| `- note: 'expectation(for:evaluatedWith:file:line:handler:)' declared here
211 | let expectation = XCTNSPredicateExpectation(predicate: predicate, object: object, file: file, line: line)
212 | expectation.handler = handler
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:185:181: error: cannot convert value of type 'XCTNSNotificationExpectation.Handler?' (aka 'Optional<@Sendable (Notification) -> Bool>') to expected argument type 'XCTNSPredicateExpectation.Handler?' (aka 'Optional<@Sendable () -> Bool>')
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
| `- error: cannot convert value of type 'XCTNSNotificationExpectation.Handler?' (aka 'Optional<@Sendable (Notification) -> Bool>') to expected argument type 'XCTNSPredicateExpectation.Handler?' (aka 'Optional<@Sendable () -> Bool>')
186 | }
187 |
/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/37] 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 |
[15/37] 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 |
[16/37] 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 |
[17/37] 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 |
[18/37] Compiling XCTest XCTestInternalObservation.swift
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:69:99: error: cannot find type 'NotificationCenter' in scope
67 | /// number of the call to this method in the calling file. It is rare to
68 | /// provide this parameter when calling this method.
69 | public init(name notificationName: Notification.Name, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line) {
| `- error: cannot find type 'NotificationCenter' in scope
70 | self.notificationName = notificationName
71 | self.observedObject = object
/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:36:47: error: cannot find type 'NotificationCenter' in scope
34 |
35 | /// The specific notification center that the notification will be posted to.
36 | open private(set) var notificationCenter: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
37 |
38 | private var observer: AnyObject?
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:84:58: error: cannot find type 'NotificationCenter' in scope
82 | }
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
| `- error: cannot find type 'NotificationCenter' in scope
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
86 | guard let strongSelf = self else { return }
/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: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/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
[19/37] Compiling XCTest XCTNSNotificationExpectation.swift
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:69:99: error: cannot find type 'NotificationCenter' in scope
67 | /// number of the call to this method in the calling file. It is rare to
68 | /// provide this parameter when calling this method.
69 | public init(name notificationName: Notification.Name, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line) {
| `- error: cannot find type 'NotificationCenter' in scope
70 | self.notificationName = notificationName
71 | self.observedObject = object
/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:36:47: error: cannot find type 'NotificationCenter' in scope
34 |
35 | /// The specific notification center that the notification will be posted to.
36 | open private(set) var notificationCenter: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
37 |
38 | private var observer: AnyObject?
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:84:58: error: cannot find type 'NotificationCenter' in scope
82 | }
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
| `- error: cannot find type 'NotificationCenter' in scope
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
86 | guard let strongSelf = self else { return }
/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: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/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
[20/37] Compiling XCTest XCTNSPredicateExpectation.swift
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:69:99: error: cannot find type 'NotificationCenter' in scope
67 | /// number of the call to this method in the calling file. It is rare to
68 | /// provide this parameter when calling this method.
69 | public init(name notificationName: Notification.Name, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line) {
| `- error: cannot find type 'NotificationCenter' in scope
70 | self.notificationName = notificationName
71 | self.observedObject = object
/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:36:47: error: cannot find type 'NotificationCenter' in scope
34 |
35 | /// The specific notification center that the notification will be posted to.
36 | open private(set) var notificationCenter: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
37 |
38 | private var observer: AnyObject?
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:84:58: error: cannot find type 'NotificationCenter' in scope
82 | }
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
| `- error: cannot find type 'NotificationCenter' in scope
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
86 | guard let strongSelf = self else { return }
/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: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/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
[21/37] Compiling XCTest XCTWaiter+Validation.swift
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:69:99: error: cannot find type 'NotificationCenter' in scope
67 | /// number of the call to this method in the calling file. It is rare to
68 | /// provide this parameter when calling this method.
69 | public init(name notificationName: Notification.Name, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line) {
| `- error: cannot find type 'NotificationCenter' in scope
70 | self.notificationName = notificationName
71 | self.observedObject = object
/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:36:47: error: cannot find type 'NotificationCenter' in scope
34 |
35 | /// The specific notification center that the notification will be posted to.
36 | open private(set) var notificationCenter: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
37 |
38 | private var observer: AnyObject?
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:84:58: error: cannot find type 'NotificationCenter' in scope
82 | }
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
| `- error: cannot find type 'NotificationCenter' in scope
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
86 | guard let strongSelf = self else { return }
/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: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/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/37] Compiling XCTest PrintObserver.swift
[23/37] Compiling XCTest SourceLocation.swift
[24/37] Compiling XCTest TestFiltering.swift
[25/37] Compiling XCTest TestListing.swift
[26/37] 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:69:99: error: cannot find type 'NotificationCenter' in scope
67 | /// number of the call to this method in the calling file. It is rare to
68 | /// provide this parameter when calling this method.
69 | public init(name notificationName: Notification.Name, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line) {
| `- error: cannot find type 'NotificationCenter' in scope
70 | self.notificationName = notificationName
71 | self.observedObject = object
/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:36:47: error: cannot find type 'NotificationCenter' in scope
34 |
35 | /// The specific notification center that the notification will be posted to.
36 | open private(set) var notificationCenter: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
37 |
38 | private var observer: AnyObject?
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTNSNotificationExpectation.swift:84:58: error: cannot find type 'NotificationCenter' in scope
82 | }
83 |
84 | private func beginObserving(with notificationCenter: NotificationCenter) {
| `- error: cannot find type 'NotificationCenter' in scope
85 | observer = notificationCenter.addObserver(forName: notificationName, object: observedObject, queue: nil) { [weak self] notification in
86 | guard let strongSelf = self else { return }
/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/Asynchronous/XCTestCase+Asynchronous.swift:163:134: error: cannot find type 'NotificationCenter' in scope
161 | /// handler to further investigate if the notification fulfills the
162 | /// expectation.
163 | @discardableResult func expectation(forNotification notificationName: Notification.Name, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
| `- error: cannot find type 'NotificationCenter' in scope
164 | let expectation = XCTNSNotificationExpectation(name: notificationName, object: object, notificationCenter: notificationCenter, file: file, line: line)
165 | expectation.handler = handler
/host/spi-builder-workspace/Sources/XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift:184:123: error: cannot find type 'NotificationCenter' in scope
182 | /// handler to further investigate if the notification fulfills the
183 | /// expectation.
184 | @discardableResult func expectation(forNotification notificationName: String, object: Any? = nil, notificationCenter: NotificationCenter = .default, file: StaticString = #file, line: Int = #line, handler: XCTNSNotificationExpectation.Handler? = nil) -> XCTestExpectation {
| `- error: cannot find type 'NotificationCenter' in scope
185 | return expectation(forNotification: Notification.Name(rawValue: notificationName), object: object, notificationCenter: notificationCenter, file: file, line: line, handler: handler)
186 | }
/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/37] 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
[28/37] 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
[29/37] 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
[30/37] 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
[31/37] Compiling XCTest XCTestObservationCenter.swift
[32/37] Compiling XCTest XCTestRun.swift
[33/37] Compiling XCTest XCTestSuite.swift
[34/37] Compiling XCTest XCTestSuiteRun.swift
BUILD FAILURE 6.1 wasm