From: Bert Belder Date: Tue, 28 Aug 2012 19:46:44 +0000 (+0200) Subject: windows: make test-child-process-exec-error pass X-Git-Tag: v0.9.1~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c06e1002c893deb1c705586193120dd606e264b0;p=platform%2Fupstream%2Fnodejs.git windows: make test-child-process-exec-error pass --- diff --git a/test/simple/test-child-process-exec-error.js b/test/simple/test-child-process-exec-error.js index 1856201..2afe114 100644 --- 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');