diff options
Diffstat (limited to 'test/common/gtest_main.cc')
-rw-r--r-- | test/common/gtest_main.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/common/gtest_main.cc b/test/common/gtest_main.cc index e1cbdc4104..95dadcf5f0 100644 --- a/test/common/gtest_main.cc +++ b/test/common/gtest_main.cc @@ -41,7 +41,8 @@ int main(int argc, char** argv, char** envp) { // Gtests can be very noisy. For example, an executable with multiple tests will trigger native // bridge warnings. The following line reduces the minimum log severity to ERROR and suppresses // everything else. In case you want to see all messages, comment out the line. - setenv("ANDROID_LOG_TAGS", "*:e", 1); + const char* log_tag_override = getenv("ART_GTEST_OVERRIDE_LOG_TAGS"); + setenv("ANDROID_LOG_TAGS", log_tag_override == nullptr ? "*:e" : log_tag_override, 1); art::Locks::Init(); art::InitLogging(argv, art::Runtime::Abort); |