diff --git a/Makefile b/Makefile index db013d3fa5..203cb95546 100644 --- a/Makefile +++ b/Makefile @@ -78,6 +78,7 @@ test-uv: all simple/test-exception-handler \ simple/test-exception-handler2 \ simple/test-exception-handler \ + simple/test-executable-path \ simple/test-file-read-noexist \ simple/test-file-write-stream \ simple/test-fs-fsync \ diff --git a/test/simple/test-executable-path.js b/test/simple/test-executable-path.js index 8076b2d53b..2e3ff6be64 100644 --- a/test/simple/test-executable-path.js +++ b/test/simple/test-executable-path.js @@ -30,13 +30,13 @@ var debugPath = path.normalize(path.join(__dirname, '..', '..', var defaultPath = path.normalize(path.join(__dirname, '..', '..', 'build', 'default', 'node')); -console.log('debugPath: ' + debugPath); -console.log('defaultPath: ' + defaultPath); -console.log('process.execPath: ' + process.execPath); +console.error('debugPath: ' + debugPath); +console.error('defaultPath: ' + defaultPath); +console.error('process.execPath: ' + process.execPath); if (/node_g$/.test(process.execPath)) { - assert.equal(debugPath, process.execPath); + assert.ok(process.execPath.indexOf(debugPath) == 0); } else { - assert.equal(defaultPath, process.execPath); + assert.ok(process.execPath.indexOf(defaultPath) == 0); }