windows: make test-child-process-exec-error pass

This commit is contained in:
Bert Belder 2012-08-28 21:46:44 +02:00
parent 3b17f3b80a
commit c06e1002c8

View File

@ -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');