From 0f157c1d0429f669ebd60401a002179f3c63cd78 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 ae1c78d30d1..bf1a38a746e 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/');