summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-realpath-on-substed-drive.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-fs-realpath-on-substed-drive.js')
-rw-r--r--test/parallel/test-fs-realpath-on-substed-drive.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/parallel/test-fs-realpath-on-substed-drive.js b/test/parallel/test-fs-realpath-on-substed-drive.js
index f8d9e86de5..a3d38d9f27 100644
--- a/test/parallel/test-fs-realpath-on-substed-drive.js
+++ b/test/parallel/test-fs-realpath-on-substed-drive.js
@@ -1,14 +1,13 @@
'use strict';
const common = require('../common');
+if (!common.isWindows)
+ common.skip('Test for Windows only');
+
const assert = require('assert');
const fs = require('fs');
const spawnSync = require('child_process').spawnSync;
-if (!common.isWindows) {
- common.skip('Test for Windows only');
- return;
-}
let result;
// create a subst drive
@@ -21,10 +20,8 @@ for (i = 0; i < driveLetters.length; ++i) {
if (result.status === 0)
break;
}
-if (i === driveLetters.length) {
+if (i === driveLetters.length)
common.skip('Cannot create subst drive');
- return;
-}
// schedule cleanup (and check if all callbacks where called)
process.on('exit', function() {