Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b0ed8db

Browse filesBrowse 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
Copy full SHA for b0ed8db

File tree

Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-cli-node-options.js
+6-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.