diff --git a/plugins/sudoers/regress/parser/check_addr.c b/plugins/sudoers/regress/parser/check_addr.c index 8c2a287dd..fd07124d8 100644 --- a/plugins/sudoers/regress/parser/check_addr.c +++ b/plugins/sudoers/regress/parser/check_addr.c @@ -141,8 +141,10 @@ main(int argc, char *argv[]) } } - printf("check_addr: %d tests run, %d errors, %d%% success rate\n", - ntests, errors, (ntests - errors) * 100 / ntests); + if (ntests != 0) { + printf("check_addr: %d tests run, %d errors, %d%% success rate\n", + ntests, errors, (ntests - errors) * 100 / ntests); + } exit(errors); }