Skip to content

Commit 8529dd5

Browse files
committed
Only run these test on 6.0+ toolchain
CodeLLDB is not working with older toolchains so need to use lldb-dap
1 parent 483771b commit 8529dd5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/integration-tests/SwiftSnippet.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,19 @@ import {
2323
waitForDebugAdapterExit,
2424
waitUntilDebugSessionTerminates,
2525
} from "../utilities/debug";
26+
import { Version } from "../../src/utilities/version";
2627

2728
suite("SwiftSnippet Test Suite", () => {
2829
const uri = testAssetUri("defaultPackage/Snippets/hello.swift");
2930
const breakpoints = [
3031
new vscode.SourceBreakpoint(new vscode.Location(uri, new vscode.Position(2, 0))),
3132
];
3233

33-
suiteSetup(async () => {
34-
await folderContextPromise("defaultPackage");
34+
suiteSetup(async function () {
35+
const folder = await folderContextPromise("defaultPackage");
36+
if (folder.workspaceContext.toolchain.swiftVersion.isLessThan(new Version(6, 0, 0))) {
37+
this.skip();
38+
}
3539
await waitForNoRunningTasks();
3640

3741
// File needs to be open for command to be enabled

0 commit comments

Comments
 (0)