summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2009-03-07 17:24:13 -0800
committerSteve Reinhardt <steve.reinhardt@amd.com>2009-03-07 17:24:13 -0800
commit4c902714f7c41d6e31cdf7c41642c22cb5fa9fcd (patch)
tree0fbc070d901a45f6ba231b5521365629554e5457 /tests
parent4f1855484c1fe148d66b2dbc2dc0d7964b578c5c (diff)
downloadgem5-4c902714f7c41d6e31cdf7c41642c22cb5fa9fcd.tar.xz
Minor tweak to regression exit status message.
Diffstat (limited to 'tests')
-rw-r--r--tests/SConscript14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/SConscript b/tests/SConscript
index 5c4a61e18..2d5bd5da0 100644
--- a/tests/SConscript
+++ b/tests/SConscript
@@ -124,16 +124,18 @@ def run_test(target, source, env):
else: # m5 exit status != 0
# M5 did not terminate properly, so no need to check the output
- if signaled(status) and signum(status) in retry_signals:
- # Consider the test incomplete; don't create a 'status' output.
- # Hand the return status to scons and let scons decide what
- # to do about it (typically terminate unless run with -k).
+ if signaled(status):
print 'M5 terminated with signal', signum(status)
- return status
+ if signum(status) in retry_signals:
+ # Consider the test incomplete; don't create a 'status' output.
+ # Hand the return status to scons and let scons decide what
+ # to do about it (typically terminate unless run with -k).
+ return status
+ else:
+ print 'M5 exited with non-zero status', status
# complete but failed execution (call to exit() with non-zero
# status, SIGABORT due to assertion failure, etc.)... fall through
# 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
if status == 0: