From d62ddbe14565a5263f9979c5d776d479fd47262c Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Fri, 17 Mar 2017 20:03:06 +0200 Subject: [PATCH] benchmark: fix fs\bench-realpathSync.js Make it call-site-cwd-independent. PR-URL: https://github.com/nodejs/node/pull/11904 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen --- benchmark/fs/bench-realpathSync.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/benchmark/fs/bench-realpathSync.js b/benchmark/fs/bench-realpathSync.js index ae1c78d30d1b35..bf1a38a746e150 100644 --- a/benchmark/fs/bench-realpathSync.js +++ b/benchmark/fs/bench-realpathSync.js @@ -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/');