diff --git a/test/embedding/test-embedding.js b/test/embedding/test-embedding.js index 43dab0ab24ea53..ac50f22e867de1 100644 --- a/test/embedding/test-embedding.js +++ b/test/embedding/test-embedding.js @@ -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'; }