You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Build/BuildOperationBuildSystemDelegateHandler.swift
+7-7
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,6 @@ final class TestDiscoveryCommand: CustomLLBuildCommand, TestBuildCommand {
86
86
87
87
fileprivate extension \#(className){
88
88
@available(*, deprecated, message: "Not actually deprecated. Marked as deprecated to allow inclusion of deprecated tests (which test deprecated functionality) without warnings")
@@ -98,7 +97,6 @@ final class TestDiscoveryCommand: CustomLLBuildCommand, TestBuildCommand {
98
97
content +=
99
98
#"""
100
99
@available(*, deprecated, message: "Not actually deprecated. Marked as deprecated to allow inclusion of deprecated tests (which test deprecated functionality) without warnings")
@@ -167,7 +165,6 @@ final class TestDiscoveryCommand: CustomLLBuildCommand, TestBuildCommand {
167
165
import XCTest
168
166
169
167
@available(*, deprecated, message: "Not actually deprecated. Marked as deprecated to allow inclusion of deprecated tests (which test deprecated functionality) without warnings")
170
-
@MainActor
171
168
public func __allDiscoveredTests() -> [XCTestCaseEntry] {
172
169
\#(testsKeyword)tests = [XCTestCaseEntry]()
173
170
@@ -266,15 +263,18 @@ final class TestEntryPointCommand: CustomLLBuildCommand, TestBuildCommand {
266
263
@main
267
264
@available(*, deprecated, message: "Not actually deprecated. Marked as deprecated to allow inclusion of deprecated tests (which test deprecated functionality) without warnings")
268
265
struct Runner {
266
+
#if os(WASI)
267
+
/// On WASI, we can't block the main thread, so XCTestMain is defined as async.
269
268
static func main() async {
270
269
\#(testObservabilitySetup)
271
-
#if os(WASI)
272
-
/// On WASI, we can't block the main thread, so XCTestMain is defined as async.
0 commit comments