Permalink
Browse files

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

  • Loading branch information...
1 parent 3b17f3b commit c06e1002c893deb1c705586193120dd606e264b0 @piscisaureus piscisaureus committed Aug 28, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 test/simple/test-child-process-exec-error.js
@@ -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.