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
38
38
Sources /XCTest/Private/WaiterManager.swift
39
39
Sources /XCTest/Private/IgnoredErrors.swift
40
40
Sources /XCTest/Private/XCTestCase.TearDownBlocksState.swift
41
- Sources /XCTest/Private/DispatchShims.swift
42
41
Sources /XCTest/Public/XCTestRun.swift
43
42
Sources /XCTest/Public/XCTestMain.swift
44
43
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 {
54
54
return 1
55
55
}
56
56
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 " )
58
74
59
75
#if !DISABLE_XCTWAITER
60
76
@MainActor
You can’t perform that action at this time.
0 commit comments