diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2014-04-29 00:06:32 +0200 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2014-04-29 00:06:32 +0200 |
commit | a917f30c6b9826552291d2d474e7d58491fa9020 (patch) | |
tree | 9928df4c1ea925e9b050a699e04f2f4e2b390ab4 /tests/runtests.pl | |
parent | ef1322df67d2f9d8aef330330bff9e74d59ee0a5 (diff) |
runtests.pl: Improved the check for a crash during torture tests
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-x | tests/runtests.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 2b4250589..bf7aaeed1 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -585,7 +585,7 @@ sub torture { else { $ret = runclient($testcmd); } - #logmsg "$_ Returned " . $ret >> 8 . "\n"; + #logmsg "$_ Returned " . ($ret >> 8) . "\n"; # Now clear the variable again delete $ENV{'CURL_MEMLIMIT'} if($ENV{'CURL_MEMLIMIT'}); @@ -599,7 +599,7 @@ sub torture { # verify that it returns a proper error code, doesn't leak memory # and doesn't core dump - if($ret & 255) { + if(($ret & 255) || ($ret >> 8) >= 128) { logmsg " system() returned $ret\n"; $fail=1; } |