Skip to content

Commit 530cf19

Browse files
committed
test: prevent V8 from writing into the system's tmpdir
Refs: nodejs/build#3864
1 parent 8d37584 commit 530cf19

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/parallel/test-cli-node-options.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ function expectNoWorker(opt, want, command, wantsError) {
9393
function expect(
9494
opt, want, command = 'console.log("B")', wantsError = false, testWorker = true
9595
) {
96-
const argv = ['-e', command];
96+
const argv = [
97+
// --perf-basic-prof and --perf-basic-prof-only-functions write to /tmp by default.
98+
`--perf-basic-prof-path=${tmpdir.path}`,
99+
'-e',
100+
command,
101+
];
97102
const opts = {
98103
cwd: tmpdir.path,
99104
env: Object.assign({}, process.env, { NODE_OPTIONS: opt }),

0 commit comments

Comments
 (0)