Skip to content

Commit c03e057

Browse files
committed
test: ignore IRPStackSize bug on win32
Some driver stacks on win32 will trigger an occasional error on test-debug-port-from-cmdline.js, reporting: Not enough storage is available to process this command Workaround is to check for that error and ignore the test entirely. Closes: #2094
1 parent 1a340a8 commit c03e057

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

test/parallel/test-debug-port-from-cmdline.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,18 @@ child.stderr.on('data', function(data) {
1717

1818
child.on('message', function onChildMsg(message) {
1919
if (message.msg === 'childready') {
20-
process._debugProcess(child.pid);
20+
try {
21+
process._debugProcess(child.pid);
22+
} catch (e) {
23+
if (common.isWindows && (e.message ===
24+
'Not enough storage is available to process this command.' ||
25+
e.message === 'Access is denied.')) {
26+
child.kill();
27+
console.log('Encountered IRPStackSize bug on win32, ignoring test');
28+
return process.exit();
29+
}
30+
throw e;
31+
}
2132
}
2233
});
2334

0 commit comments

Comments
 (0)