summaryrefslogtreecommitdiffstats
path: root/runtime/utils_test.cc
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-01-14 19:53:31 -0800
committerAndreas Gampe <agampe@google.com>2015-01-15 07:51:55 -0800
commit369810a98e6394b6dd162f5349e38a1f597b3bc7 (patch)
treeec703b9fdfe57f039f833208f879d8c95b813137 /runtime/utils_test.cc
parent1c1d40ab7fd856eac52e1a3be7ce60da3fc21fb5 (diff)
downloadart-369810a98e6394b6dd162f5349e38a1f597b3bc7.tar.gz
art-369810a98e6394b6dd162f5349e38a1f597b3bc7.tar.bz2
art-369810a98e6394b6dd162f5349e38a1f597b3bc7.zip
ART: Allow scoped adjustments to log verbosity
Add ScopedLogSeverity to adjust the logging level. Suppress warnings by default in gtests. Suppress errors in instances where errors are expected. Change-Id: If3ef865813e9505ab60bc90baed63ff11d90afbb
Diffstat (limited to 'runtime/utils_test.cc')
-rw-r--r--runtime/utils_test.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/utils_test.cc b/runtime/utils_test.cc
index a98bc909f2..a3dd13c661 100644
--- a/runtime/utils_test.cc
+++ b/runtime/utils_test.cc
@@ -392,6 +392,9 @@ TEST_F(UtilsTest, ExecSuccess) {
}
TEST_F(UtilsTest, ExecError) {
+ // This will lead to error messages in the log.
+ ScopedLogSeverity sls(LogSeverity::FATAL);
+
std::vector<std::string> command;
command.push_back("bogus");
std::string error_msg;