Skip to content

Commit b8da67f

Browse files
compnerdbriancroom
authored andcommitted
Tests: disable Asynchronous.Use on Windows
Disable this test on Windows as this is exposing a latent UB in the Concurrency runtime. It seems better to safely disable this test on Windows for the time being until the runtime is fixed.
1 parent ee9fe6b commit b8da67f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Tests/Functional/Asynchronous/Use/main.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// RUN: %{xctest_checker} %t %s
44
// REQUIRES: concurrency_runtime
55

6+
// UNSUPPORTED: OS=windows
7+
68
#if os(macOS)
79
import SwiftXCTest
810
#else
@@ -57,7 +59,7 @@ class AsyncAwaitTests: XCTestCase {
5759
override func setUp() async throws {}
5860

5961
override func tearDown() async throws {}
60-
62+
6163
// CHECK: Test Case 'AsyncAwaitTests.test_explicitFailures_withinAsyncTests_areReported' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
6264
// CHECK: .*[/\\]Asynchronous[/\\]Use[/\\]main.swift:[[@LINE+3]]: error: AsyncAwaitTests.test_explicitFailures_withinAsyncTests_areReported : XCTAssertTrue failed -
6365
// CHECK: Test Case 'AsyncAwaitTests.test_explicitFailures_withinAsyncTests_areReported' failed \(\d+\.\d+ seconds\)

Tests/Functional/lit.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,5 @@ os_is_not_macOS = run_os != 'Darwin'
148148
macOS_version_is_recent_enough = parse_version(run_vers) >= parse_version('12.0')
149149
if os_is_not_macOS or macOS_version_is_recent_enough:
150150
config.available_features.add('concurrency_runtime')
151+
if run_os == 'Windows':
152+
config.available_features.add('OS=windows')

0 commit comments

Comments
 (0)