Improved the summary output to use correct English for all counts.
authorWayne Davison <wayned@samba.org>
Mon, 7 Jul 2003 07:08:24 +0000 (07:08 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 7 Jul 2003 07:08:24 +0000 (07:08 +0000)
wildtest.c

index 3c40e4ae5504c9fb6313e64d48f507d7a78c2349..48161d902ad2005636a6d7cd556bdf587a656059 100644 (file)
@@ -139,15 +139,17 @@ main(int argc, char **argv)
     }
 
     if (!wildmatch_errors)
     }
 
     if (!wildmatch_errors)
-       printf("No wildmatch errors found.\n");
+       fputs("No", stdout);
     else
     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)
 
 #ifdef COMPARE_WITH_FNMATCH
     if (!fnmatch_errors)
-       printf("No fnmatch errors found.\n");
+       fputs("No", stdout);
     else
     else
-       printf("Found %d fnmatch errors.\n", fnmatch_errors);
+       printf("%d", fnmatch_errors);
+    printf(" fnmatch error%s found.\n", fnmatch_errors == 1? "" : "s");
 
 #endif
 
 
 #endif