0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/simple/test-executable-path.js
Ryan Dahl 97c9745063 Back to WAF
Too much instability right now. Hopefully we can revisit autoconf soon.
2010-11-01 16:51:20 -07:00

20 lines
598 B
JavaScript

common = require("../common");
assert = common.assert;
path = require("path");
isDebug = (process.version.indexOf('debug') >= 0);
debugPath = path.normalize(path.join(__dirname, '..', '..', 'build', 'debug', 'node_g'));
defaultPath = path.normalize(path.join(__dirname, '..', '..', 'build', 'default', 'node'));
console.log('debugPath: ' + debugPath);
console.log('defaultPath: ' + defaultPath);
console.log('process.execPath: ' + process.execPath);
if (/node_g$/.test(process.execPath)) {
assert.equal(debugPath, process.execPath);
} else {
assert.equal(defaultPath, process.execPath);
}