Skip to content

test: ignore IRPStackSize bug on win32

Some driver stacks on win32 will trigger an occasional error on test-debug-port-from-cmdline.js:

not ok 136 - test-debug-port-from-cmdline.js
#c:\workspace\iojs+pr+win\nodes\win2008r2\test\parallel\test-debug-port-from-cmdline.js:20
#    process._debugProcess(child.pid);
#            ^
#Error: Not enough storage is available to process this command.
#    at Error (native)
#    at ChildProcess.onChildMsg (c:\workspace\iojs+pr+win\nodes\win2008r2\test\parallel\test-debug-port-from-cmdline.js:20:13)
#    at emitTwo (events.js:87:13)
#    at ChildProcess.emit (events.js:172:7)
#    at handleMessage (internal/child_process.js:632:10)
#    at Pipe.channel.onread (internal/child_process.js:421:11)

My attempt at a workaround is to check for that error and ignore the test entirely. But unfortunately it's not so straightforward because now the test is failing with:

not ok 136 - test-debug-port-from-cmdline.js
#c:\workspace\iojs+pr+win\nodes\win2008r2\test\parallel\test-debug-port-from-cmdline.js:29
#      throw e;
#            ^
#Error: Access is denied.
#    at Error (native)
#    at ChildProcess.onChildMsg (c:\workspace\iojs+pr+win\nodes\win2008r2\test\parallel\test-debug-port-from-cmdline.js:21:15)
#    at emitTwo (events.js:87:13)
#    at ChildProcess.emit (events.js:172:7)
#    at handleMessage (internal/child_process.js:632:10)
#    at Pipe.channel.onread (internal/child_process.js:421:11)

Can anyone with background or any kind of clue on this suggest a better workaround or do I just need to catch the error and ignore if win32 (I'd rather not be so blanket about it).

Merge request reports

Loading