diff --git a/test/simple/test-process-argv-0.js b/test/simple/test-process-argv-0.js index fa5b6876c0..0c38f6ac7b 100644 --- a/test/simple/test-process-argv-0.js +++ b/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 {