From c06e1002c893deb1c705586193120dd606e264b0 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 28 Aug 2012 21:46:44 +0200 Subject: [PATCH] windows: make test-child-process-exec-error pass --- test/simple/test-child-process-exec-error.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/simple/test-child-process-exec-error.js b/test/simple/test-child-process-exec-error.js index 18562016039..2afe1144341 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');