Skip to content

Commit 7a3334b

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

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,24 @@ 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+
? "\u001b[0K"
468+
: "";
469+
470+
console.log(`>>> Platform |${process.platform}|`);
471+
console.log(">>> Swift Version", workspaceContext.swiftVersion.toString());
472+
console.log(
473+
">>> Match",
474+
workspaceContext.swiftVersion.isGreaterThanOrEqual(new Version(6, 0, 0))
475+
);
476+
console.log(
477+
">>> Match",
478+
process.platform === "win32" &&
479+
workspaceContext.swiftVersion.isGreaterThanOrEqual(new Version(6, 0, 0))
480+
);
481+
console.log(`>>> Test Issue SUffix |${suffix}|`);
464482
// From 5.7 to 5.10 running with the --parallel option dumps the test results out
465483
// to the console with no newlines, so it isn't possible to distinguish where errors
466484
// begin and end. Consequently we can't record them, and so we manually mark them
@@ -469,7 +487,7 @@ suite("Test Explorer Suite", function () {
469487
runProfile === TestKind.parallel &&
470488
!workspaceContext.toolchain.hasMultiLineParallelTestOutput
471489
? "failed"
472-
: `failed - oh no`;
490+
: `failed - oh no${suffix}`;
473491
});
474492

475493
suite(runProfile, () => {

0 commit comments

Comments
 (0)