File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 3
3
// RUN: %{xctest_checker} %t %s
4
4
// REQUIRES: concurrency_runtime
5
5
6
+ // UNSUPPORTED: OS=windows
7
+
6
8
#if os(macOS)
7
9
import SwiftXCTest
8
10
#else
@@ -57,7 +59,7 @@ class AsyncAwaitTests: XCTestCase {
57
59
override func setUp( ) async throws { }
58
60
59
61
override func tearDown( ) async throws { }
60
-
62
+
61
63
// CHECK: Test Case 'AsyncAwaitTests.test_explicitFailures_withinAsyncTests_areReported' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
62
64
// CHECK: .*[/\\]Asynchronous[/\\]Use[/\\]main.swift:[[@LINE+3]]: error: AsyncAwaitTests.test_explicitFailures_withinAsyncTests_areReported : XCTAssertTrue failed -
63
65
// CHECK: Test Case 'AsyncAwaitTests.test_explicitFailures_withinAsyncTests_areReported' failed \(\d+\.\d+ seconds\)
Original file line number Diff line number Diff line change 75
75
# We need to jump through extra hoops to link swift-corelibs-foundation.
76
76
foundation_dir = _getenv ('FOUNDATION_BUILT_PRODUCTS_DIR' )
77
77
if platform .system () == 'Windows' :
78
+ sdkroot = os .getenv ('SDKROOT' , None )
79
+ if sdkroot :
80
+ swift_exec .extend (['-sdk' , sdkroot ])
78
81
swift_exec .extend (['-Xlinker' , '-nodefaultlib:libcmt' ])
79
82
else :
80
83
swift_exec .extend ([
@@ -148,3 +151,5 @@ os_is_not_macOS = run_os != 'Darwin'
148
151
macOS_version_is_recent_enough = parse_version (run_vers ) >= parse_version ('12.0' )
149
152
if os_is_not_macOS or macOS_version_is_recent_enough :
150
153
config .available_features .add ('concurrency_runtime' )
154
+ if run_os == 'Windows' :
155
+ config .available_features .add ('OS=windows' )
You can’t perform that action at this time.
0 commit comments