Skip to content

Commit 7d9d3f6

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

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,19 @@ 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(">>> Test Issue SUffix", suffix);
464477
// From 5.7 to 5.10 running with the --parallel option dumps the test results out
465478
// to the console with no newlines, so it isn't possible to distinguish where errors
466479
// begin and end. Consequently we can't record them, and so we manually mark them
@@ -469,7 +482,7 @@ suite("Test Explorer Suite", function () {
469482
runProfile === TestKind.parallel &&
470483
!workspaceContext.toolchain.hasMultiLineParallelTestOutput
471484
? "failed"
472-
: `failed - oh no`;
485+
: `failed - oh no${suffix}`;
473486
});
474487

475488
suite(runProfile, () => {

0 commit comments

Comments
 (0)