test: replace fixturesDir with fixtures module

PR-URL: https://github.com/nodejs/node/pull/15919
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
penDerGraft 2017-10-06 12:11:02 -05:00 committed by Ruben Bridgewater
parent 721f6df705
commit 261ae7f58a
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -1,10 +1,13 @@
'use strict';
const common = require('../common');
common.skipIfInspectorDisabled();
const fixtures = require('../common/fixtures');
const assert = require('assert');
const spawn = require('child_process').spawn;
const script = `${common.fixturesDir}/empty.js`;
// file name here doesn't actually matter since
// debugger will connect regardless of file name arg
const script = fixtures.path('empty.js');
function test(arg) {
const child = spawn(process.execPath, ['--inspect', arg, script]);