X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=tests%2Fdiff-out;h=1308eccfbcf26f49ed473eeb8069837c581115cf;hb=fea7165b55f7eca4b1a549628029b06c5d19aa1c;hp=5ebe97dd78fb48a7dcc474ce5310b7112eac1704;hpb=0850c3dedbedaaa269ff2e28680b91ae3767b163;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