Index: tools/test.py |
=================================================================== |
--- tools/test.py (revision 2090) |
+++ tools/test.py (working copy) |
@@ -164,6 +164,8 @@ |
print "Command: %s" % EscapeCommand(failed.command) |
if failed.HasCrashed(): |
print "--- CRASHED ---" |
+ if failed.HasTimedOut(): |
+ print "--- TIMEOUT ---" |
if len(self.failed) == 0: |
print "===" |
print "=== All tests succeeded" |
@@ -207,6 +209,9 @@ |
if output.HasCrashed(): |
sys.stdout.write('C') |
sys.stdout.flush() |
+ elif output.HasTimedOut(): |
+ sys.stdout.write('T') |
+ sys.stdout.flush() |
else: |
sys.stdout.write('F') |
sys.stdout.flush() |
@@ -245,6 +250,8 @@ |
print "Command: %s" % EscapeCommand(output.command) |
if output.HasCrashed(): |
print "--- CRASHED ---" |
+ if output.HasTimedOut(): |
+ print "--- TIMEOUT ---" |
def Truncate(self, str, length): |
if length and (len(str) > (length - 3)): |
@@ -381,6 +388,9 @@ |
return self.output.exit_code < 0 and \ |
self.output.exit_code != -signal.SIGABRT |
+ def HasTimedOut(self): |
+ return self.output.timed_out; |
+ |
def HasFailed(self): |
execution_failed = self.test.DidFail(self.output) |
if self.test.IsNegative(): |