summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-exec-error.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-child-process-exec-error.js')
-rw-r--r--test/parallel/test-child-process-exec-error.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-exec-error.js b/test/parallel/test-child-process-exec-error.js
index b141fc3f2c..416eb16514 100644
--- a/test/parallel/test-child-process-exec-error.js
+++ b/test/parallel/test-child-process-exec-error.js
@@ -17,7 +17,7 @@ function test(fun, code) {
});
}
-if (process.platform === 'win32') {
+if (common.isWindows) {
test(child_process.exec, 1); // exit code of cmd.exe
} else {
test(child_process.exec, 127); // exit code of /bin/sh