Skip to content

Commit

Permalink
benchmark: fix fs\bench-realpathSync.js
Browse files Browse the repository at this point in the history
Make it call-site-cwd-independent.

PR-URL: nodejs#11904
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
vsemozhetbyt authored and jungx098 committed Mar 21, 2017
1 parent 4bff6b8 commit ce24d52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmark/fs/bench-realpathSync.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
const common = require('../common');
const fs = require('fs');
const path = require('path');

process.chdir(__dirname);
const resolved_path = path.resolve(__dirname, '../../lib/');
const relative_path = path.relative(__dirname, '../../lib/');

Expand Down

0 comments on commit ce24d52

Please sign in to comment.