Browse Source

fix simple/test-process-argv-0 on windows

v0.9.1-release
Igor Zinkovsky 13 years ago
parent
commit
9ea5a4c468
  1. 7
      test/simple/test-process-argv-0.js

7
test/simple/test-process-argv-0.js

@ -42,7 +42,12 @@ if (process.argv[2] !== "child") {
});
child.on('exit', function () {
console.error('CHILD: %s', childErr.trim().split('\n').join('\nCHILD: '));
assert.equal(childArgv0, process.execPath);
if (process.platform === 'win32') {
// On Windows argv[0] is not expanded into full path
assert.equal(childArgv0, './node');
} else {
assert.equal(childArgv0, process.execPath);
}
});
}
else {

Loading…
Cancel
Save