Skip to content

Commit

Permalink
Run tests in source dir, not in the build dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpld committed Nov 13, 2023
1 parent 30f6030 commit 2d7e01d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ export async function testDebugHandler(
return;
}

let configDebugOptions = extensionConfiguration("debugOptions");
const configDebugOptions = extensionConfiguration("debugOptions");
const sourceDir = workspaceState.get<string>("mesonbuild.sourceDir")!;

/* We already figured out which tests we want to run.
* We don't use the actual test either way, as we don't get the result here... */
Expand All @@ -127,7 +128,7 @@ export async function testDebugHandler(
name: `meson-debug-${test.name}`,
type: debugType,
request: "launch",
cwd: test.workdir || buildDir,
cwd: test.workdir || sourceDir,
env: test.env,
program: test.cmd[0],
args: args,
Expand Down

0 comments on commit 2d7e01d

Please sign in to comment.