mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
710 B
21 lines
710 B
var common = require('../common');
|
|
var assert = require('assert');
|
|
var path = require('path');
|
|
|
|
var isDebug = (process.version.indexOf('debug') >= 0);
|
|
|
|
var debugPath = path.normalize(path.join(__dirname, '..', '..',
|
|
'build', 'debug', 'node_g'));
|
|
var 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);
|
|
}
|
|
|
|
|