From: Dan Fandrich Date: Mon, 28 Apr 2014 22:06:32 +0000 (+0200) Subject: runtests.pl: Improved the check for a crash during torture tests X-Git-Tag: upstream/7.37.1~275 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a917f30c6b9826552291d2d474e7d58491fa9020;p=platform%2Fupstream%2Fcurl.git runtests.pl: Improved the check for a crash during torture tests --- diff --git a/tests/runtests.pl b/tests/runtests.pl index 2b42505..bf7aaee 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; }