diff options
author | Sakthipriyan Vairamani <thechargingvolcano@gmail.com> | 2015-07-29 17:18:04 +0530 |
---|---|---|
committer | Sakthipriyan Vairamani <thechargingvolcano@gmail.com> | 2015-07-31 00:29:36 +0530 |
commit | d5ab92bcc1f0ddf7ea87a8322824a688dfd43bf5 (patch) | |
tree | 84fd79f5ed48e08077d0f0b347147be38daf82df /test/sequential/test-child-process-execsync.js | |
parent | fa98b97171d9b8519bdbf5d9f8dbd8639ac3c050 (diff) | |
download | node-new-d5ab92bcc1f0ddf7ea87a8322824a688dfd43bf5.tar.gz |
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/sequential/test-child-process-execsync.js')
-rw-r--r-- | test/sequential/test-child-process-execsync.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sequential/test-child-process-execsync.js b/test/sequential/test-child-process-execsync.js index 13982e00a6..07b6ba4c34 100644 --- a/test/sequential/test-child-process-execsync.js +++ b/test/sequential/test-child-process-execsync.js @@ -67,7 +67,7 @@ assert.strictEqual(ret, msg + '\n', var response; var cwd; - if (process.platform === 'win32') { + if (common.isWindows) { cwd = 'c:\\'; response = execSync('echo %cd%', {cwd: cwd}); } else { |