File tree Expand file tree Collapse file tree 3 files changed +17
-49
lines changed Expand file tree Collapse file tree 3 files changed +17
-49
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ add_library(XCTest
3838 Sources /XCTest/Private /WaiterManager.swift
3939 Sources /XCTest/Private /IgnoredErrors.swift
4040 Sources /XCTest/Private /XCTestCase.TearDownBlocksState.swift
41- Sources /XCTest/Private /DispatchShims.swift
4241 Sources /XCTest/Public /XCTestRun.swift
4342 Sources /XCTest/Public /XCTestMain.swift
4443 Sources /XCTest/Public /XCTestCase.swift
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -54,7 +54,23 @@ open class XCTestCase: XCTest {
5454 return 1
5555 }
5656
57- internal static let subsystemQueue = DispatchQueue ( label: " org.swift.XCTestCase " )
57+ #if DISABLE_XCTWAITER
58+ /// Single-threaded queue without any actual queueing
59+ struct SubsystemQueue {
60+ init ( label: String ) { }
61+
62+ func sync< T> ( _ body: ( ) -> T ) -> T {
63+ body ( )
64+ }
65+ func async ( _ body: @escaping ( ) -> Void ) {
66+ body ( )
67+ }
68+ }
69+ #else
70+ typealias SubsystemQueue = DispatchQueue
71+ #endif
72+
73+ internal static let subsystemQueue = SubsystemQueue ( label: " org.swift.XCTestCase " )
5874
5975 #if !DISABLE_XCTWAITER
6076 @MainActor
You can’t perform that action at this time.
0 commit comments