2010-12-05 07:20:34 +08:00
|
|
|
var common = require('../common');
|
|
|
|
var assert = require('assert');;
|
|
|
|
var path = require("path");
|
2010-06-22 14:31:19 +08:00
|
|
|
|
2010-12-05 07:20:34 +08:00
|
|
|
var isDebug = (process.version.indexOf('debug') >= 0);
|
2010-06-22 14:31:19 +08:00
|
|
|
|
2010-12-05 07:20:34 +08:00
|
|
|
var debugPath = path.normalize(path.join(__dirname, '..', '..', 'build', 'debug', 'node_g'));
|
|
|
|
var 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
|
|
|
|