windows: make test-child-process-exec-error pass
authorBert Belder <bertbelder@gmail.com>
Tue, 28 Aug 2012 19:46:44 +0000 (21:46 +0200)
committerBert Belder <bertbelder@gmail.com>
Tue, 28 Aug 2012 19:46:58 +0000 (21:46 +0200)
test/simple/test-child-process-exec-error.js

index 1856201..2afe114 100644 (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');