Skip to content

Commit b0ed8db

Browse files
targosRafaelGSS
authored andcommitted
test: prevent V8 from writing into the system's tmpdir
Refs: nodejs/build#3864 PR-URL: #54395 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent 0cf78aa commit b0ed8db

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

+6-1
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)