8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b3951a commit 54a1078Copy full SHA for 54a1078
test/parallel/test-windows-failed-heap-allocation.js
@@ -14,9 +14,13 @@ if (process.argv[2] === 'heapBomb') {
14
fn(2);
15
}
16
17
+// Run child in tmpdir to avoid report files in repo
18
+const tmpdir = require('../common/tmpdir');
19
+tmpdir.refresh();
20
+
21
// --max-old-space-size=3 is the min 'old space' in V8, explodes fast
22
const cmd = `"${process.execPath}" --max-old-space-size=3 "${__filename}"`;
-exec(`${cmd} heapBomb`, common.mustCall((err) => {
23
+exec(`${cmd} heapBomb`, { cwd: tmpdir.path }, common.mustCall((err) => {
24
const msg = `Wrong exit code of ${err.code}! Expected 134 for abort`;
25
// Note: common.nodeProcessAborted() is not asserted here because it
26
// returns true on 134 as well as 0xC0000005 (V8's base::OS::Abort)