Skip to content

Commit

Permalink
tools,test: show signal code when test crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
santigimeno committed Jul 26, 2016
1 parent 392c70a commit dbf5899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (Signal: %d) ---" % -failed.output.exit_code
if failed.HasTimedOut():
print "--- TIMEOUT ---"
if len(self.failed) == 0:
Expand Down Expand Up @@ -347,7 +347,7 @@ def HasRun(self, output):
print self.templates['stderr'] % stderr
print "Command: %s" % EscapeCommand(output.command)
if output.HasCrashed():
print "--- CRASHED ---"
print "--- CRASHED (Signal: %d) ---" % -output.output.exit_code
if output.HasTimedOut():
print "--- TIMEOUT ---"

Expand Down

0 comments on commit dbf5899

Please sign in to comment.