X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/97d53f8c757d30584232e986cad3fa05b9f570f6..16417f8b9d1947f4efbe540ee6983feba2ebc21c:/wildtest.c diff --git a/wildtest.c b/wildtest.c index b5820993..48161d90 100644 --- a/wildtest.c +++ b/wildtest.c @@ -59,8 +59,10 @@ run_test(int line, bool matches, bool same_as_fnmatch, fnmatch_errors++; } #endif - if (output_iterations) - printf("[%s] iterations = %d\n", pattern, wildmatch_iteration_count); + if (output_iterations) { + printf("%d: \"%s\" iterations = %d\n", line, pattern, + wildmatch_iteration_count); + } } int @@ -137,15 +139,17 @@ main(int argc, char **argv) } if (!wildmatch_errors) - printf("No wildmatch errors found.\n"); + fputs("No", stdout); else - printf("Found %d wildmatch errors.\n", wildmatch_errors); + printf("%d", wildmatch_errors); + printf(" wildmatch error%s found.\n", wildmatch_errors == 1? "" : "s"); #ifdef COMPARE_WITH_FNMATCH if (!fnmatch_errors) - printf("No fnmatch errors found.\n"); + fputs("No", stdout); else - printf("Found %d fnmatch errors.\n", fnmatch_errors); + printf("%d", fnmatch_errors); + printf(" fnmatch error%s found.\n", fnmatch_errors == 1? "" : "s"); #endif