-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
test: ignore IRPStackSize bug on win32 #2149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe comment linking to this issue? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have to follow the convention
while skipping tests, so that TAP Plugin can pick them. |
||
return process.exit(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will |
||
} | ||
throw e; | ||
} | ||
} | ||
}); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we write this as something like