Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7f5291d

Browse filesBrowse files
zcbenzRafaelGSS
authored andcommitted
test: resolve path of embedtest binary correctly
PR-URL: #50276 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
1 parent c3abdc5 commit 7f5291d
Copy full SHA for 7f5291d

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Open diff view settings
Collapse file

‎test/embedding/test-embedding.js‎

Copy file name to clipboardExpand all lines: test/embedding/test-embedding.js
+2-3Lines changed: 2 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.