diff options
Diffstat (limited to 'runtime/common_runtime_test.cc')
-rw-r--r-- | runtime/common_runtime_test.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/runtime/common_runtime_test.cc b/runtime/common_runtime_test.cc index a846346edd..c4e83b9ad4 100644 --- a/runtime/common_runtime_test.cc +++ b/runtime/common_runtime_test.cc @@ -650,25 +650,3 @@ void CheckJniAbortCatcher::Hook(void* data, const std::string& reason) { } } // namespace art - -// Allow other test code to run global initialization/configuration before -// gtest infra takes over. -extern "C" -__attribute__((visibility("default"))) __attribute__((weak)) -void ArtTestGlobalInit() { -} - -int main(int argc, char **argv) { - // 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); - - art::Locks::Init(); - art::InitLogging(argv, art::Runtime::Abort); - art::MemMap::Init(); - LOG(INFO) << "Running main() from common_runtime_test.cc..."; - testing::InitGoogleTest(&argc, argv); - ArtTestGlobalInit(); - return RUN_ALL_TESTS(); -} |