diff --git a/test/parallel/test-debug-port-from-cmdline.js b/test/parallel/test-debug-port-from-cmdline.js index deb7ae241a55fd..ecee9d68fd59d3 100644 --- a/test/parallel/test-debug-port-from-cmdline.js +++ b/test/parallel/test-debug-port-from-cmdline.js @@ -17,7 +17,18 @@ child.stderr.on('data', function(data) { child.on('message', function onChildMsg(message) { if (message.msg === 'childready') { - process._debugProcess(child.pid); + try { + process._debugProcess(child.pid); + } catch (e) { + if (common.isWindows && (e.message === + 'Not enough storage is available to process this command.' || + e.message === 'Access is denied.')) { + child.kill(); + console.log('Encountered IRPStackSize bug on win32, ignoring test'); + return process.exit(); + } + throw e; + } } });