Skip to content

Commit 224e1f4

Browse files
committed
Fixup tests on Linux/Windows
1 parent 37c9134 commit 224e1f4

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Tests/CommandsTests/TestCommandTests.swift

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,8 +1361,8 @@ struct TestCommandTests {
13611361
)
13621362

13631363
#expect(
1364-
stdout.contains("failbreak breakpoint set -n \"_XCTFailureBreakpoint\""),
1365-
"Expected XCTest failure breakpoint setup, got stdout: \(stdout), stderr: \(stderr)",
1364+
stdout.contains("failbreak breakpoint set"),
1365+
"Expected a failure breakpoint to be setup, got stdout: \(stdout), stderr: \(stderr)",
13661366
)
13671367
}
13681368
}
@@ -1389,7 +1389,7 @@ struct TestCommandTests {
13891389
)
13901390

13911391
#expect(
1392-
stdout.contains("failbreak breakpoint set -s Testing -n \"failureBreakpoint()\""),
1392+
stdout.contains("failbreak breakpoint set"),
13931393
"Expected Swift Testing failure breakpoint setup, got stdout: \(stdout), stderr: \(stderr)",
13941394
)
13951395
}
@@ -1417,10 +1417,7 @@ struct TestCommandTests {
14171417
)
14181418

14191419
#expect(
1420-
stdout.contains("failbreak") && (
1421-
stdout.contains("_XCTFailureBreakpoint") ||
1422-
stdout.contains("failureBreakpoint()")
1423-
),
1420+
getNumberOfMatches(of: "breakpoint set", in: stdout) == 2,
14241421
"Expected combined failure breakpoint setup, got stdout: \(stdout), stderr: \(stderr)",
14251422
)
14261423

0 commit comments

Comments
 (0)