Skip to content

Commit

Permalink
changes to test
Browse files Browse the repository at this point in the history
  • Loading branch information
gcampbell-msft committed Sep 16, 2024
1 parent 76b1974 commit b5548a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/drivers/cmakeDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -955,9 +955,11 @@ export abstract class CMakeDriver implements vscode.Disposable {
}

public async testHaveCommand(program: string, args: string[] = ['--version']): Promise<boolean> {
const child = this.executeCommand(program, args, undefined, { silent: true });
const child = this.executeCommand(program, args, undefined);
try {
console.log("before testing having command: " + program);
const result = await child.result;
console.log("after testing having command: " + program);
log.trace(localize('command.version.test.return.code', '{0} returned code {1}', `"${program} ${args.join(' ')}"`, nullableValueToString(result.retc)));
return result.retc === 0;
} catch (e: any) {
Expand Down

0 comments on commit b5548a4

Please sign in to comment.