Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 9ea5a4c468fe290f00b6ebc78c33c2a60cc53625 1 parent 59c3923
Igor Zinkovsky authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 test/simple/test-process-argv-0.js
View
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 {
Please sign in to comment.
Something went wrong with that request. Please try again.