Skip to content

Commit 7f5291d

Browse files
zcbenzRafaelGSS
authored andcommitted
test: resolve path of embedtest binary correctly
PR-URL: #50276 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent c3abdc5 commit 7f5291d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/embedding/test-embedding.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ tmpdir.refresh();
1414
common.allowGlobals(global.require);
1515
common.allowGlobals(global.embedVars);
1616

17-
function resolveBuiltBinary(bin) {
18-
let binary = `out/${common.buildType}/${bin}`;
17+
function resolveBuiltBinary(binary) {
1918
if (common.isWindows) {
2019
binary += '.exe';
2120
}
22-
return path.resolve(__dirname, '..', '..', binary);
21+
return path.join(path.dirname(process.execPath), binary);
2322
}
2423

2524
const binary = resolveBuiltBinary('embedtest');

0 commit comments

Comments
 (0)