diff options
author | Yabin Cui <yabinc@google.com> | 2015-01-20 14:46:03 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2015-01-20 14:46:03 -0800 |
commit | 516eb531137a50e2fd82108c5b7a43b87c103312 (patch) | |
tree | 580d6aab197e0cbbc8c13abc4afb00aa254bbddd /tests/gtest_main.cpp | |
parent | 6104eb9fa7a23ef1ce779073eb8cd28194e4c164 (diff) | |
download | android_bionic-516eb531137a50e2fd82108c5b7a43b87c103312.tar.gz android_bionic-516eb531137a50e2fd82108c5b7a43b87c103312.tar.bz2 android_bionic-516eb531137a50e2fd82108c5b7a43b87c103312.zip |
Remove testcase time printing in bionic-unit-tests.
Bug: 19075565
Change-Id: Icccb60657a2985e96abb1703673f0ebe2199586a
Diffstat (limited to 'tests/gtest_main.cpp')
-rw-r--r-- | tests/gtest_main.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/gtest_main.cpp b/tests/gtest_main.cpp index 6c5023bfd..99cd4eebb 100644 --- a/tests/gtest_main.cpp +++ b/tests/gtest_main.cpp @@ -319,18 +319,6 @@ static void OnTestTimeoutPrint(const TestCase& testcase, size_t test_id) { fflush(stdout); } -static void TestcaseTimePrint(const TestCase& testcase) { - int64_t testcase_time = 0; - for (size_t i = 0; i < testcase.TestCount(); ++i) { - testcase_time += testcase.GetTestTime(i); - } - printf("%zu %s from %s (%lld ms total)\n", testcase.TestCount(), - (testcase.TestCount() == 1) ? "test" : "tests", - testcase.GetName().c_str(), - testcase_time / 1000000LL); - fflush(stdout); -} - static void OnTestIterationEndPrint(const std::vector<TestCase>& testcase_list, size_t /*iteration*/, int64_t elapsed_time) { @@ -364,10 +352,6 @@ static void OnTestIterationEndPrint(const std::vector<TestCase>& testcase_list, } } - for (auto const& testcase : testcase_list) { - TestcaseTimePrint(testcase); - } - ColoredPrintf(COLOR_GREEN, "[==========] "); printf("%zu %s from %zu %s ran.", test_count, (test_count == 1) ? "test" : "tests", testcase_count, (testcase_count == 1) ? "test case" : "test cases"); |