X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=tests%2Fdiff-out;h=1308eccfbcf26f49ed473eeb8069837c581115cf;hb=3efec59fc55a439353adbd859722d8a5d170c18d;hp=5ebe97dd78fb48a7dcc474ce5310b7112eac1704;hpb=15e5ce96c76a20b9b27e5f7d7ed29e962422ad1a;p=gem5.git diff --git a/tests/diff-out b/tests/diff-out index 5ebe97dd7..1308eccfb 100755 --- a/tests/diff-out +++ b/tests/diff-out @@ -398,8 +398,8 @@ if ($added_stats) } cleanup(); -# Exit code is 0 if no stats error, 1 otherwise -$status = ($max_err_mag == 0.0) ? 0 : 1; +# Exit code is 0 if some stats found & no stats error, 1 otherwise +$status = ($#key_stats >= 0 && $max_err_mag == 0.0) ? 0 : 1; exit $status; sub cleanup