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.

22 lines
710 B

14 years ago
var common = require('../common');
var assert = require('assert');
var path = require('path');
14 years ago
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);
}