diff options
author | Scott Graham <scottmg@chromium.org> | 2013-04-17 20:05:50 (GMT) |
---|---|---|
committer | Scott Graham <scottmg@chromium.org> | 2013-04-17 20:05:50 (GMT) |
commit | bce105ead963eef8822e4b7a38e9e46ec8d06d2b (patch) | |
tree | 60b6265b9d40d610df591dc7e1613d44a73c7fe0 /src/ninja_test.cc | |
parent | 7bf53c69741052e93a8096b1654fbebfc6983fad (diff) | |
download | Ninja-bce105ead963eef8822e4b7a38e9e46ec8d06d2b.zip Ninja-bce105ead963eef8822e4b7a38e9e46ec8d06d2b.tar.gz Ninja-bce105ead963eef8822e4b7a38e9e46ec8d06d2b.tar.bz2 |
reset count in LaconicPrinter for when using --gtest_repeat
Diffstat (limited to 'src/ninja_test.cc')
-rw-r--r-- | src/ninja_test.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ninja_test.cc b/src/ninja_test.cc index 02f2c6b..b772441 100644 --- a/src/ninja_test.cc +++ b/src/ninja_test.cc @@ -38,6 +38,11 @@ class LaconicPrinter : public testing::EmptyTestEventListener { test_count_ = unit_test.test_to_run_count(); } + virtual void OnTestIterationStart(const testing::UnitTest& test_info, + int iteration) { + tests_started_ = 0; + } + virtual void OnTestStart(const testing::TestInfo& test_info) { ++tests_started_; printer_.Print(StringPrintf("[%d/%d] %s.%s", tests_started_, test_count_, |