Skip to content

Commit 1c2a7ce

Browse files
committed
Fixup tests on Linux/Windows
1 parent d434104 commit 1c2a7ce

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
@@ -1358,8 +1358,8 @@ struct TestCommandTests {
13581358
)
13591359

13601360
#expect(
1361-
stdout.contains("failbreak breakpoint set -n \"_XCTFailureBreakpoint\""),
1362-
"Expected XCTest failure breakpoint setup, got stdout: \(stdout), stderr: \(stderr)",
1361+
stdout.contains("failbreak breakpoint set"),
1362+
"Expected a failure breakpoint to be setup, got stdout: \(stdout), stderr: \(stderr)",
13631363
)
13641364
}
13651365
}
@@ -1386,7 +1386,7 @@ struct TestCommandTests {
13861386
)
13871387

13881388
#expect(
1389-
stdout.contains("failbreak breakpoint set -s Testing -n \"failureBreakpoint()\""),
1389+
stdout.contains("failbreak breakpoint set"),
13901390
"Expected Swift Testing failure breakpoint setup, got stdout: \(stdout), stderr: \(stderr)",
13911391
)
13921392
}
@@ -1414,10 +1414,7 @@ struct TestCommandTests {
14141414
)
14151415

14161416
#expect(
1417-
stdout.contains("failbreak") && (
1418-
stdout.contains("_XCTFailureBreakpoint") ||
1419-
stdout.contains("failureBreakpoint()")
1420-
),
1417+
getNumberOfMatches(of: "breakpoint set", in: stdout) == 2,
14211418
"Expected combined failure breakpoint setup, got stdout: \(stdout), stderr: \(stderr)",
14221419
)
14231420

0 commit comments

Comments
 (0)