Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
fix simple/test-process-argv-0 on windows
  • Loading branch information
Igor Zinkovsky committed Mar 6, 2012
1 parent 59c3923 commit 9ea5a4c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/simple/test-process-argv-0.js
Expand Up @@ -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 {
Expand Down

0 comments on commit 9ea5a4c

Please sign in to comment.