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

This commit is contained in:
Igor Zinkovsky 2012-03-05 16:50:21 -08:00
parent 59c3923672
commit 9ea5a4c468

View File

@ -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 {