summaryrefslogtreecommitdiff
path: root/test/sequential/test-regress-GH-3542.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/sequential/test-regress-GH-3542.js')
-rw-r--r--test/sequential/test-regress-GH-3542.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/sequential/test-regress-GH-3542.js b/test/sequential/test-regress-GH-3542.js
index 16981da469..dee24c79fb 100644
--- a/test/sequential/test-regress-GH-3542.js
+++ b/test/sequential/test-regress-GH-3542.js
@@ -1,15 +1,15 @@
'use strict';
-// This test is only relevant on Windows.
-if (process.platform !== 'win32') {
- return process.exit(0);
-}
-
var common = require('../common'),
assert = require('assert'),
fs = require('fs'),
path = require('path'),
succeeded = 0;
+// This test is only relevant on Windows.
+if (!common.isWindows) {
+ return process.exit(0);
+}
+
function test(p) {
var result = fs.realpathSync(p);
assert.strictEqual(result, path.resolve(p));