Browse Source

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

v0.9.1-release
Bert Belder 13 years ago
parent
commit
c06e1002c8
  1. 7
      test/simple/test-child-process-exec-error.js

7
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'); test(child_process.execFile, 'ENOENT');

Loading…
Cancel
Save