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/parallel/test-fs-realpath.js | |
parent | fa98b97171d9b8519bdbf5d9f8dbd8639ac3c050 (diff) | |
download | android-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-fs-realpath.js')
-rw-r--r-- | test/parallel/test-fs-realpath.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/parallel/test-fs-realpath.js b/test/parallel/test-fs-realpath.js index a87ef2428d..9082e1d65f 100644 --- a/test/parallel/test-fs-realpath.js +++ b/test/parallel/test-fs-realpath.js @@ -5,13 +5,12 @@ var fs = require('fs'); var path = require('path'); var exec = require('child_process').exec; var async_completed = 0, async_expected = 0, unlink = []; -var isWindows = process.platform === 'win32'; var skipSymlinks = false; common.refreshTmpDir(); var root = '/'; -if (isWindows) { +if (common.isWindows) { // something like "C:\\" root = process.cwd().substr(0, 3); @@ -292,7 +291,7 @@ function test_relative_input_cwd(callback) { function test_deep_symlink_mix(callback) { console.log('test_deep_symlink_mix'); - if (isWindows) { + if (common.isWindows) { // This one is a mix of files and directories, and it's quite tricky // to get the file/dir links sorted out correctly. console.log('1..0 # Skipped: symlink test (no privs)'); @@ -503,7 +502,7 @@ function test_lying_cache_liar(cb) { '/a/b' : '/a/b', '/a/b/c' : '/a/b', '/a/b/d' : '/a/b/d' }; - if (isWindows) { + if (common.isWindows) { var wc = {}; Object.keys(cache).forEach(function(k) { wc[ path.resolve(k) ] = path.resolve(cache[k]); |