summaryrefslogtreecommitdiff
path: root/benchmark/fs/readfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/fs/readfile.js')
-rw-r--r--benchmark/fs/readfile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/fs/readfile.js b/benchmark/fs/readfile.js
index 82479ff14e..7c55073fe0 100644
--- a/benchmark/fs/readfile.js
+++ b/benchmark/fs/readfile.js
@@ -5,7 +5,7 @@
const path = require('path');
const common = require('../common.js');
-const filename = path.resolve(__dirname,
+const filename = path.resolve(process.env.NODE_TMPDIR || __dirname,
`.removeme-benchmark-garbage-${process.pid}`);
const fs = require('fs');