mirror of https://github.com/lukechilds/node.git
Browse Source
Darwin, Linux, Solaris. FreeBSD still needs testing. TODO: Amend the tests where we use spawn with argv[0].v0.7.4-release
Marshall Culpepper
15 years ago
committed by
Ryan Dahl
8 changed files with 88 additions and 0 deletions
@ -0,0 +1,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); |
Loading…
Reference in new issue