Only print individual check status when there is a failure.

This commit is contained in:
Todd C. Miller
2011-08-29 14:53:47 -04:00
parent f478f84066
commit 0cd4648093

View File

@@ -72,9 +72,11 @@ check_addr(char *input)
input[len] = '\0'; input[len] = '\0';
matched = addr_matches(input); matched = addr_matches(input);
warningx("%s %smatched (%s)", input, matched ? "" : "not ", if (matched != expected) {
matched == expected ? "OK" : "FAIL"); warningx("%s %smatched: FAIL", input, matched ? "" : "not ");
return (matched != expected); return 1;
}
return 0;
} }
static void static void