Skip to content

Commit

Permalink
test: use common.buildType in embedding test
Browse files Browse the repository at this point in the history
This un-breaks testing in the case of `./configure --debug-node`.

PR-URL: #32422
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
addaleax committed Mar 27, 2020
1 parent 6791ac0 commit c3204a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/embedding/test-embedding.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ const child_process = require('child_process');
const path = require('path');

common.allowGlobals(global.require);
let binary = process.features.debug ?
'out/Debug/embedtest' : 'out/Release/embedtest';
let binary = `out/${common.buildType}/embedtest`;
if (common.isWindows) {
binary += '.exe';
}
Expand Down

0 comments on commit c3204a8

Please sign in to comment.