-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
tools,test: show signal code when test crashes #7859
Conversation
@@ -196,7 +196,7 @@ def Done(self): | |||
print failed.output.stdout.strip() | |||
print "Command: %s" % EscapeCommand(failed.command) | |||
if failed.HasCrashed(): | |||
print "--- CRASHED ---" | |||
print "--- CRASHED (%d) ---" % -failed.output.exit_code |
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.
Perhaps it might be helpful to add a prefix before the number here and below, like "Exit code ".
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.
Would --- CRASHED (Signal: %d) ---
work for you?
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.
That's better, yes.
PR updated. Thanks! |
LGTM but does it print the right thing on Windows? |
@bnoordhuis I don't know. Is there a simple way to force a crash on |
PR update adding |
@santigimeno I normally use |
@gibfahn I didn't know about |
PR updated printing the Signal Code on every platform but |
@@ -196,7 +196,7 @@ def Done(self): | |||
print failed.output.stdout.strip() | |||
print "Command: %s" % EscapeCommand(failed.command) | |||
if failed.HasCrashed(): | |||
print "--- CRASHED ---" | |||
print "--- %s ---" % PrintCrashed(-failed.output.exit_code) |
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.
I'd negate in PrintCrashed() itself.
LGTM with a suggestion and a style nit. |
PR updated with @bnoordhuis comments. Thanks! |
On every platform but `Windows`. Also, print the crash information when using the tap reporter. PR-URL: nodejs#7859 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Landed in df4ef63. Thanks! |
On every platform but `Windows`. Also, print the crash information when using the tap reporter. PR-URL: #7859 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
On every platform but `Windows`. Also, print the crash information when using the tap reporter. PR-URL: #7859 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
On every platform but `Windows`. Also, print the crash information when using the tap reporter. PR-URL: #7859 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
On every platform but `Windows`. Also, print the crash information when using the tap reporter. PR-URL: #7859 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Checklist
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
tools, test
Description of change