Quiet clang analyzer false positive in regress tests.

This commit is contained in:
Todd C. Miller
2021-04-27 15:56:24 -06:00
parent 84a01d3a93
commit ac878d3e27
11 changed files with 42 additions and 21 deletions

View File

@@ -96,8 +96,10 @@ main(int argc, char *argv[])
}
}
printf("%s: %d tests run, %d errors, %d%% success rate\n", getprogname(),
ntests, errors, (ntests - errors) * 100 / ntests);
if (ntests != 0) {
printf("%s: %d tests run, %d errors, %d%% success rate\n",
getprogname(), ntests, errors, (ntests - errors) * 100 / ntests);
}
exit(errors);
}