Skip to content

Commit 1f6e90f

Browse files
committed
Disable some tests on Windows
1 parent 8246b8b commit 1f6e90f

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

Tests/CommandsTests/TestCommandTests.swift

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,8 @@ struct TestCommandTests {
13061306
func debuggerFlagWithXCTestSuite(buildSystem: BuildSystemProvider.Kind) async throws {
13071307
try await withKnownIssue(
13081308
"""
1309-
MacOS: Could not find or use auto-linked library 'Testing': library 'Testing' not found
1309+
MacOS, .swiftbuild: Could not find or use auto-linked library 'Testing': library 'Testing' not found
1310+
Windows: Missing LLDB DLLs w/ ARM64 toolchain
13101311
"""
13111312
) {
13121313
let configuration = BuildConfiguration.debug
@@ -1340,7 +1341,8 @@ struct TestCommandTests {
13401341
)
13411342
}
13421343
} when: {
1343-
buildSystem == .swiftbuild && ProcessInfo.hostOperatingSystem == .macOS && CiEnvironment.runningInSelfHostedPipeline
1344+
(buildSystem == .swiftbuild && ProcessInfo.hostOperatingSystem == .macOS && CiEnvironment.runningInSelfHostedPipeline)
1345+
|| (ProcessInfo.hostOperatingSystem == .windows && CiEnvironment.runningInSelfHostedPipeline)
13441346
}
13451347
}
13461348

@@ -1351,7 +1353,8 @@ struct TestCommandTests {
13511353
func debuggerFlagWithSwiftTestingSuite(buildSystem: BuildSystemProvider.Kind) async throws {
13521354
try await withKnownIssue(
13531355
"""
1354-
MacOS: Could not find or use auto-linked library 'Testing': library 'Testing' not found
1356+
MacOS, .swiftbuild: Could not find or use auto-linked library 'Testing': library 'Testing' not found
1357+
Windows: Missing LLDB DLLs w/ ARM64 toolchain
13551358
"""
13561359
) {
13571360
let configuration = BuildConfiguration.debug
@@ -1385,7 +1388,8 @@ struct TestCommandTests {
13851388
)
13861389
}
13871390
} when: {
1388-
buildSystem == .swiftbuild && ProcessInfo.hostOperatingSystem == .macOS && CiEnvironment.runningInSelfHostedPipeline
1391+
(buildSystem == .swiftbuild && ProcessInfo.hostOperatingSystem == .macOS && CiEnvironment.runningInSelfHostedPipeline)
1392+
|| (ProcessInfo.hostOperatingSystem == .windows && CiEnvironment.runningInSelfHostedPipeline)
13891393
}
13901394
}
13911395

@@ -1396,7 +1400,8 @@ struct TestCommandTests {
13961400
func debuggerFlagWithBothTestingSuites(buildSystem: BuildSystemProvider.Kind) async throws {
13971401
try await withKnownIssue(
13981402
"""
1399-
MacOS: Could not find or use auto-linked library 'Testing': library 'Testing' not found
1403+
MacOS, .swiftbuild: Could not find or use auto-linked library 'Testing': library 'Testing' not found
1404+
Windows: Missing LLDB DLLs w/ ARM64 toolchain
14001405
"""
14011406
) {
14021407
let configuration = BuildConfiguration.debug
@@ -1429,7 +1434,8 @@ struct TestCommandTests {
14291434
)
14301435
}
14311436
} when: {
1432-
buildSystem == .swiftbuild && ProcessInfo.hostOperatingSystem == .macOS && CiEnvironment.runningInSelfHostedPipeline
1437+
(buildSystem == .swiftbuild && ProcessInfo.hostOperatingSystem == .macOS && CiEnvironment.runningInSelfHostedPipeline)
1438+
|| (ProcessInfo.hostOperatingSystem == .windows && CiEnvironment.runningInSelfHostedPipeline)
14331439
}
14341440
}
14351441

0 commit comments

Comments
 (0)