OSDN Git Service

Make bdtest report the total number of tests (sanity + suite)
authorZach Johnson <zachoverflow@google.com>
Wed, 24 Sep 2014 20:57:45 +0000 (13:57 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Mon, 16 Mar 2015 23:51:37 +0000 (16:51 -0700)
There are currently 11 tests, but if one failed it would report 1/9 rather than 1/11.

test/suite/main.c

index c9ccec5..1aff77c 100644 (file)
@@ -154,7 +154,7 @@ int main(int argc, char **argv) {
   printf("\n");
 
   if (fail) {
-    printf("%d/%d tests failed. See above for failed test cases.\n", fail, test_suite_size);
+    printf("%d/%d tests failed. See above for failed test cases.\n", fail, sanity_suite_size + test_suite_size);
   } else {
     printf("All tests passed!\n");
   }