projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b17f3b
)
windows: make test-child-process-exec-error pass
author
Bert Belder
<bertbelder@gmail.com>
Tue, 28 Aug 2012 19:46:44 +0000
(21:46 +0200)
committer
Bert Belder
<bertbelder@gmail.com>
Tue, 28 Aug 2012 19:46:58 +0000
(21:46 +0200)
test/simple/test-child-process-exec-error.js
patch
|
blob
|
history
diff --git
a/test/simple/test-child-process-exec-error.js
b/test/simple/test-child-process-exec-error.js
index
1856201
..
2afe114
100644
(file)
--- a/
test/simple/test-child-process-exec-error.js
+++ b/
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');