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

Unified Diff: net/base/fuzzer_test_support.cc

Issue 2649203002: Disable noisy logging for //net fuzz targets. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/fuzzer_test_support.cc
diff --git a/net/base/fuzzer_test_support.cc b/net/base/fuzzer_test_support.cc
index f355c8808e6fc8a2418828d12014bd38355c029c..0b97dfbacdc117d7d6151d48ddf2fa5702d82167 100644
--- a/net/base/fuzzer_test_support.cc
+++ b/net/base/fuzzer_test_support.cc
@@ -24,6 +24,10 @@ struct InitGlobals {
// Prevent every call to get a Histogram* from leaking memory. Instead, only
// the fist call to get each Histogram* leaks memory.
base::StatisticsRecorder::Initialize();
+
+ // Disable noisy logging as per "libFuzzer in Chrome" documentation:
+ // testing/libfuzzer/getting_started.md#Disable-noisy-error-message-logging.
+ logging::SetMinLogLevel(logging::LOG_FATAL);
}
// A number of tests use async code which depends on there being a message
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698