diff options
author | Bryan English <bryan@bryanenglish.com> | 2016-05-26 09:43:09 -0700 |
---|---|---|
committer | Bryan English <bryan@bryanenglish.com> | 2016-06-06 15:28:52 -0700 |
commit | cc2a88a2f32bab8a14209713c19aaf14d7652a45 (patch) | |
tree | e072ffc6124cbe20fd96059fb14da790665f396e /test/parallel/test-preload.js | |
parent | 843d58fcbbec09cde5633e0bc5ab025d0a640204 (diff) | |
download | android-node-v8-cc2a88a2f32bab8a14209713c19aaf14d7652a45.tar.gz android-node-v8-cc2a88a2f32bab8a14209713c19aaf14d7652a45.tar.bz2 android-node-v8-cc2a88a2f32bab8a14209713c19aaf14d7652a45.zip |
test: use common.fixturesDir almost everywhere
Updating tests to use `common.fixturesDir` whenever possible/reasonable.
Left out things like tests for `path` and `require.resolve`.
PR-URL: https://github.com/nodejs/node/pull/6997
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-preload.js')
-rw-r--r-- | test/parallel/test-preload.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-preload.js b/test/parallel/test-preload.js index 71019b6e01..e60b29dfbe 100644 --- a/test/parallel/test-preload.js +++ b/test/parallel/test-preload.js @@ -22,7 +22,7 @@ const preloadOption = function(preloads) { }; const fixture = function(name) { - return path.join(__dirname, '../fixtures/' + name); + return path.join(common.fixturesDir, name); }; const fixtureA = fixture('printA.js'); @@ -138,7 +138,7 @@ childProcess.exec(nodeBinary + ' ' }); // https://github.com/nodejs/node/issues/1691 -process.chdir(path.join(__dirname, '../fixtures/')); +process.chdir(common.fixturesDir); childProcess.exec(nodeBinary + ' ' + '--expose_debug_as=v8debug ' + '--require ' + fixture('cluster-preload.js') + ' ' |