Skip to content

Commit

Permalink
test: ignore IRPStackSize bug on win32
Browse files Browse the repository at this point in the history
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: nodejs#2094
  • Loading branch information
rvagg committed Jul 10, 2015
1 parent 1a340a8 commit c03e057
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test/parallel/test-debug-port-from-cmdline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
});

Expand Down

0 comments on commit c03e057

Please sign in to comment.