2010-07-16 02:47:25 +08:00
|
|
|
common = require("../common");
|
2010-07-16 05:14:05 +08:00
|
|
|
assert = common.assert;
|
2010-06-22 14:31:19 +08:00
|
|
|
path = require("path");
|
|
|
|
|
|
|
|
isDebug = (process.version.indexOf('debug') >= 0);
|
|
|
|
|
2010-07-16 05:14:05 +08:00
|
|
|
debugPath = path.normalize(path.join(__dirname, '..', '..', 'build', 'debug', 'node_g'));
|
|
|
|
defaultPath = path.normalize(path.join(__dirname, '..', '..', 'build', 'default', 'node'));
|
2010-06-22 14:31:19 +08:00
|
|
|
|
2010-07-16 05:14:05 +08:00
|
|
|
console.log('debugPath: ' + debugPath);
|
|
|
|
console.log('defaultPath: ' + defaultPath);
|
2010-06-24 08:40:51 +08:00
|
|
|
console.log('process.execPath: ' + process.execPath);
|
2010-06-22 14:31:19 +08:00
|
|
|
|
2010-07-16 05:14:05 +08:00
|
|
|
if (/node_g$/.test(process.execPath)) {
|
|
|
|
assert.equal(debugPath, process.execPath);
|
|
|
|
} else {
|
|
|
|
assert.equal(defaultPath, process.execPath);
|
|
|
|
}
|
2010-06-22 14:31:19 +08:00
|
|
|
|