Skip to content

Commit 0b8bd7b

Browse files
committed
Add back expected issue suffix only for Swift >=6.0.0
1 parent dd9f67e commit 0b8bd7b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/integration-tests/testexplorer/TestExplorerIntegration.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,12 @@ suite("Test Explorer Suite", function () {
461461
let xcTestFailureMessage: string;
462462

463463
beforeEach(() => {
464+
const suffix =
465+
process.platform === "win32" &&
466+
workspaceContext.swiftVersion.isGreaterThanOrEqual(new Version(6, 0, 0))
467+
? "\x1b[0K"
468+
: "";
469+
464470
// From 5.7 to 5.10 running with the --parallel option dumps the test results out
465471
// to the console with no newlines, so it isn't possible to distinguish where errors
466472
// begin and end. Consequently we can't record them, and so we manually mark them
@@ -469,7 +475,7 @@ suite("Test Explorer Suite", function () {
469475
runProfile === TestKind.parallel &&
470476
!workspaceContext.toolchain.hasMultiLineParallelTestOutput
471477
? "failed"
472-
: `failed - oh no`;
478+
: `failed - oh no${suffix}`;
473479
});
474480

475481
suite(runProfile, () => {

0 commit comments

Comments
 (0)