Skip to content

Commit ee975bc

Browse files
committed
Use dynamic lldb-dap path in tests
1 parent 0fd0dd3 commit ee975bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import {
4343
} from "../../../src/TestExplorer/TestUtils";
4444
import { runnableTag } from "../../../src/TestExplorer/TestDiscovery";
4545
import { Commands } from "../../../src/commands";
46+
import { SwiftToolchain } from "../../../src/toolchain/toolchain";
4647

4748
suite("Test Explorer Suite", function () {
4849
const MAX_TEST_RUN_TIME_MINUTES = 5;
@@ -96,9 +97,12 @@ suite("Test Explorer Suite", function () {
9697

9798
suite("CodeLLDB", () => {
9899
beforeEach(async function () {
100+
const toolchain = await SwiftToolchain.create();
101+
const lldbPath = await toolchain.getLLDBDebugAdapter();
102+
console.log(">>> lldbPath", lldbPath);
99103
const testContext = await setupTestExplorerTest({
100104
"swift.debugger.useDebugAdapterFromToolchain": false,
101-
...(process.env["CI"] === "1" ? { "lldb.library": "/usr/lib/liblldb.so" } : {}),
105+
"lldb.library": lldbPath,
102106
});
103107

104108
workspaceContext = testContext.workspaceContext;

0 commit comments

Comments
 (0)