Browse Source

windows: fix simple/test-executable-path

v0.7.4-release
Ryan Dahl 13 years ago
parent
commit
f5a7de1ea7
  1. 1
      Makefile
  2. 10
      test/simple/test-executable-path.js

1
Makefile

@ -78,6 +78,7 @@ test-uv: all
simple/test-exception-handler \
simple/test-exception-handler2 \
simple/test-exception-handler \
simple/test-executable-path \
simple/test-file-read-noexist \
simple/test-file-write-stream \
simple/test-fs-fsync \

10
test/simple/test-executable-path.js

@ -30,13 +30,13 @@ var debugPath = path.normalize(path.join(__dirname, '..', '..',
var defaultPath = path.normalize(path.join(__dirname, '..', '..',
'build', 'default', 'node'));
console.log('debugPath: ' + debugPath);
console.log('defaultPath: ' + defaultPath);
console.log('process.execPath: ' + process.execPath);
console.error('debugPath: ' + debugPath);
console.error('defaultPath: ' + defaultPath);
console.error('process.execPath: ' + process.execPath);
if (/node_g$/.test(process.execPath)) {
assert.equal(debugPath, process.execPath);
assert.ok(process.execPath.indexOf(debugPath) == 0);
} else {
assert.equal(defaultPath, process.execPath);
assert.ok(process.execPath.indexOf(defaultPath) == 0);
}

Loading…
Cancel
Save