Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
windows: make test-child-process-exec-error pass
  • Loading branch information
piscisaureus committed Aug 28, 2012
1 parent 3b17f3b commit c06e100
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/simple/test-child-process-exec-error.js
Expand Up @@ -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');

0 comments on commit c06e100

Please sign in to comment.