summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-double-pipe.js
diff options
context:
space:
mode:
authorSakthipriyan Vairamani <thechargingvolcano@gmail.com>2015-07-29 17:18:04 +0530
committerSakthipriyan Vairamani <thechargingvolcano@gmail.com>2015-07-31 00:29:36 +0530
commitd5ab92bcc1f0ddf7ea87a8322824a688dfd43bf5 (patch)
tree84fd79f5ed48e08077d0f0b347147be38daf82df /test/parallel/test-child-process-double-pipe.js
parentfa98b97171d9b8519bdbf5d9f8dbd8639ac3c050 (diff)
downloadandroid-node-v8-d5ab92bcc1f0ddf7ea87a8322824a688dfd43bf5.tar.gz
android-node-v8-d5ab92bcc1f0ddf7ea87a8322824a688dfd43bf5.tar.bz2
android-node-v8-d5ab92bcc1f0ddf7ea87a8322824a688dfd43bf5.zip
test: use common.isWindows consistently
In the tests, we use "process.platform === 'win32'" in some places. This patch replaces them with the "common.isWindows" for consistency. PR-URL: https://github.com/nodejs/io.js/pull/2269 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'test/parallel/test-child-process-double-pipe.js')
-rw-r--r--test/parallel/test-child-process-double-pipe.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/parallel/test-child-process-double-pipe.js b/test/parallel/test-child-process-double-pipe.js
index 41f49bb7a8..b791d4164d 100644
--- a/test/parallel/test-child-process-double-pipe.js
+++ b/test/parallel/test-child-process-double-pipe.js
@@ -1,6 +1,4 @@
'use strict';
-var is_windows = process.platform === 'win32';
-
var common = require('../common');
var assert = require('assert'),
os = require('os'),
@@ -12,7 +10,7 @@ var assert = require('assert'),
var grep, sed, echo;
-if (is_windows) {
+if (common.isWindows) {
grep = spawn('grep', ['--binary', 'o']),
sed = spawn('sed', ['--binary', 's/o/O/']),
echo = spawn('cmd.exe',