Minor tweak to regression exit status message.

This commit is contained in:
Steve Reinhardt 2009-03-07 17:24:13 -08:00
parent 4f1855484c
commit 4c902714f7

View file

@ -124,16 +124,18 @@ def run_test(target, source, env):
else: # m5 exit status != 0 else: # m5 exit status != 0
# M5 did not terminate properly, so no need to check the output # M5 did not terminate properly, so no need to check the output
if signaled(status) and signum(status) in retry_signals: if signaled(status):
print 'M5 terminated with signal', signum(status)
if signum(status) in retry_signals:
# Consider the test incomplete; don't create a 'status' output. # Consider the test incomplete; don't create a 'status' output.
# Hand the return status to scons and let scons decide what # Hand the return status to scons and let scons decide what
# to do about it (typically terminate unless run with -k). # to do about it (typically terminate unless run with -k).
print 'M5 terminated with signal', signum(status)
return status return status
else:
print 'M5 exited with non-zero status', status
# complete but failed execution (call to exit() with non-zero # complete but failed execution (call to exit() with non-zero
# status, SIGABORT due to assertion failure, etc.)... fall through # status, SIGABORT due to assertion failure, etc.)... fall through
# and generate FAILED status as if output comparison had failed # and generate FAILED status as if output comparison had failed
print 'M5 exited with non-zero status', status
# Generate status file contents based on exit status of m5 or diff-out # Generate status file contents based on exit status of m5 or diff-out
if status == 0: if status == 0: