Skip to content

Commit 2e4e877

Browse files
committed
Fixup tests on Linux/Windows
1 parent 03655c8 commit 2e4e877

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
@@ -1362,8 +1362,8 @@ struct TestCommandTests {
13621362
)
13631363

13641364
#expect(
1365-
stdout.contains("failbreak breakpoint set -n \"_XCTFailureBreakpoint\""),
1366-
"Expected XCTest failure breakpoint setup, got stdout: \(stdout), stderr: \(stderr)",
1365+
stdout.contains("failbreak breakpoint set"),
1366+
"Expected a failure breakpoint to be setup, got stdout: \(stdout), stderr: \(stderr)",
13671367
)
13681368
}
13691369
}
@@ -1390,7 +1390,7 @@ struct TestCommandTests {
13901390
)
13911391

13921392
#expect(
1393-
stdout.contains("failbreak breakpoint set -s Testing -n \"failureBreakpoint()\""),
1393+
stdout.contains("failbreak breakpoint set"),
13941394
"Expected Swift Testing failure breakpoint setup, got stdout: \(stdout), stderr: \(stderr)",
13951395
)
13961396
}
@@ -1418,10 +1418,7 @@ struct TestCommandTests {
14181418
)
14191419

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

0 commit comments

Comments
 (0)