Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(771)

Unified Diff: base/test/launcher/test_results_tracker.cc

Issue 2406243004: Introduce test output snippet byte limit (Closed)
Patch Set: 2.5 MB Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/test/launcher/test_result.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/launcher/test_results_tracker.cc
diff --git a/base/test/launcher/test_results_tracker.cc b/base/test/launcher/test_results_tracker.cc
index a8611aee38f70bccb07c50484a3cab5f9e02ca69..6b56761f78d7eaada50a774b395ddafb2d586532 100644
--- a/base/test/launcher/test_results_tracker.cc
+++ b/base/test/launcher/test_results_tracker.cc
@@ -65,6 +65,7 @@ struct TestSuiteResultsAggregator {
case TestResult::TEST_FAILURE:
failures++;
break;
+ case TestResult::TEST_EXCESSIVE_OUTPUT:
case TestResult::TEST_FAILURE_ON_EXIT:
case TestResult::TEST_TIMEOUT:
case TestResult::TEST_CRASH:
@@ -247,6 +248,9 @@ void TestResultsTracker::PrintSummaryOfCurrentIteration() const {
PrintTests(tests_by_status[TestResult::TEST_FAILURE_ON_EXIT].begin(),
tests_by_status[TestResult::TEST_FAILURE_ON_EXIT].end(),
"failed on exit");
+ PrintTests(tests_by_status[TestResult::TEST_EXCESSIVE_OUTPUT].begin(),
+ tests_by_status[TestResult::TEST_EXCESSIVE_OUTPUT].end(),
+ "produced excessive output");
PrintTests(tests_by_status[TestResult::TEST_TIMEOUT].begin(),
tests_by_status[TestResult::TEST_TIMEOUT].end(),
"timed out");
@@ -275,6 +279,9 @@ void TestResultsTracker::PrintSummaryOfAllIterations() const {
PrintTests(tests_by_status[TestResult::TEST_FAILURE_ON_EXIT].begin(),
tests_by_status[TestResult::TEST_FAILURE_ON_EXIT].end(),
"failed on exit");
+ PrintTests(tests_by_status[TestResult::TEST_EXCESSIVE_OUTPUT].begin(),
+ tests_by_status[TestResult::TEST_EXCESSIVE_OUTPUT].end(),
+ "produced excessive output");
PrintTests(tests_by_status[TestResult::TEST_TIMEOUT].begin(),
tests_by_status[TestResult::TEST_TIMEOUT].end(),
"timed out");
« no previous file with comments | « base/test/launcher/test_result.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698