diff options
-rw-r--r-- | base/test_suite.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/base/test_suite.h b/base/test_suite.h index 8967fbd..4102252 100644 --- a/base/test_suite.h +++ b/base/test_suite.h @@ -134,8 +134,10 @@ class TestSuite { // Display the number of flaky tests. int flaky_count = GetTestCount(&TestSuite::FlakyTest); - printf(" YOU HAVE %d FLAKY %s\n\n", flaky_count, - flaky_count == 1 ? "TEST" : "TESTS"); + if (flaky_count) { + printf(" YOU HAVE %d FLAKY %s\n\n", flaky_count, + flaky_count == 1 ? "TEST" : "TESTS"); + } // This MUST happen before Shutdown() since Shutdown() tears down // objects (such as NotificationService::current()) that Cocoa |