aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-26 18:56:56 +0000
committerYang Tse <yangsita@gmail.com>2008-09-26 18:56:56 +0000
commita632f6d5b10eb464b945198b950f531ffde4fe51 (patch)
treeefed2678a294b9fd038dc5eb4ec806071b0ceb66 /tests
parent83c199bb00747780f1c9a737053cd127ca61dcaf (diff)
if a test execution is aborted due to a signal, and the process
returns no other exitcode, use 2000 + signal number as return code
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 4cd390b5d..e426b4afd 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -2109,6 +2109,7 @@ sub singletest {
}
else {
$cmdres >>= 8;
+ $cmdres = (2000 + $signal_num) if($signal_num && !$cmdres);
}
}
if(!$dumped_core) {