diff --git a/test/parallel/test-error-reporting.js b/test/parallel/test-error-reporting.js index 8a961299793bb8..57b647df792c90 100644 --- a/test/parallel/test-error-reporting.js +++ b/test/parallel/test-error-reporting.js @@ -23,10 +23,10 @@ const common = require('../common'); const assert = require('assert'); const exec = require('child_process').exec; -const path = require('path'); +const fixtures = require('../common/fixtures'); function errExec(script, callback) { - const cmd = `"${process.argv[0]}" "${path.join(common.fixturesDir, script)}"`; + const cmd = `"${process.argv[0]}" "${fixtures.path(script)}"`; return exec(cmd, function(err, stdout, stderr) { // There was some error assert.ok(err);