windows: make test-child-process-exec-error pass
This commit is contained in:
parent
3b17f3b80a
commit
c06e1002c8
@ -36,5 +36,10 @@ function test(fun, code) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
test(child_process.exec, 127); // exit code of /bin/sh or cmd.exe
|
if (process.platform === 'win32') {
|
||||||
|
test(child_process.exec, 1); // exit code of cmd.exe
|
||||||
|
} else {
|
||||||
|
test(child_process.exec, 127); // exit code of /bin/sh
|
||||||
|
}
|
||||||
|
|
||||||
test(child_process.execFile, 'ENOENT');
|
test(child_process.execFile, 'ENOENT');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user