summaryrefslogtreecommitdiff
path: root/test/simple/test-executable-path.js
blob: 7b59d4f363f6900d3274e4073f9a10deed5c067a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require("../common");

path = require("path");

isDebug = (process.version.indexOf('debug') >= 0);

nodePath = path.join(__dirname,
                     "..",
                     "..",
                     "build",
                     isDebug ? 'debug' : 'default',
                     isDebug ? 'node_g' : 'node');
nodePath = path.normalize(nodePath);

puts('nodePath: ' + nodePath);
puts('process.execPath: ' + process.execPath);


assert.equal(nodePath, process.execPath);