test: used fixturesDir from fixtures modules

In test-fs-realpath-on-substed-drive, require common/fixtures
module and swapped the location of fixturesDir
from common to fixtures module.

PR-URL: https://github.com/nodejs/node/pull/16813
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
Klemen Kogovsek authored and Gireesh Punathil committed 2017-11-13 18:03:01 +05:30
1 parent 107e8a9867
commit 1601a3c2a9
1 file changed
+3 -1
@@ -4,6 +4,8 @@ const common = require('../common');
if (!common.isWindows)
common.skip('Test for Windows only');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const fs = require('fs');
const spawnSync = require('child_process').spawnSync;
@@ -16,7 +18,7 @@ let drive;
let i;
for (i = 0; i < driveLetters.length; ++i) {
drive = `${driveLetters[i]}:`;
result = spawnSync('subst', [drive, common.fixturesDir]);
result = spawnSync('subst', [drive, fixtures.fixturesDir]);
if (result.status === 0)
break;
}