summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-03 22:25:08 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-03 22:25:08 +0000
commit7f0d2e0ab2b852fa12cfad892cfe5758ca779705 (patch)
treeac52484c0d51a9aabcd7d0859a29cf6eaf7b2e12 /base
parentc1e3e220c1b6502c830b0da74fc721d437bb2577 (diff)
downloadchromium_src-7f0d2e0ab2b852fa12cfad892cfe5758ca779705.zip
chromium_src-7f0d2e0ab2b852fa12cfad892cfe5758ca779705.tar.gz
chromium_src-7f0d2e0ab2b852fa12cfad892cfe5758ca779705.tar.bz2
Display the flaky test count only if it's bigger than 0.
Review URL: http://codereview.chromium.org/255072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27962 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/test_suite.h6
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