summaryrefslogtreecommitdiff
path: root/runtime/common_runtime_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2023-01-17 14:36:34 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2023-01-17 17:11:13 +0000
commit64b0376d4b0f9ccbb044f0bd9f6c56ec44196af5 (patch)
treeea2fce25e895e8c6a061b061465c54a49e36e104 /runtime/common_runtime_test.cc
parentecd3acedf1c83cc76c0741894eeab58329a3915d (diff)
Suppress logging when creating Runtime for gtests.
Test: m test-art-host-gtest Change-Id: I5e8a206560131b429298b56699b9111a2a2992d0
Diffstat (limited to 'runtime/common_runtime_test.cc')
-rw-r--r--runtime/common_runtime_test.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/runtime/common_runtime_test.cc b/runtime/common_runtime_test.cc
index 0e8a96278b..131d0d8548 100644
--- a/runtime/common_runtime_test.cc
+++ b/runtime/common_runtime_test.cc
@@ -121,9 +121,12 @@ void CommonRuntimeTestImpl::SetUp() {
}
PreRuntimeCreate();
- if (!Runtime::Create(options, false)) {
- LOG(FATAL) << "Failed to create runtime";
- UNREACHABLE();
+ {
+ ScopedLogSeverity sls(LogSeverity::WARNING);
+ if (!Runtime::Create(options, false)) {
+ LOG(FATAL) << "Failed to create runtime";
+ UNREACHABLE();
+ }
}
PostRuntimeCreate();
runtime_.reset(Runtime::Current());