diff options
author | 2020-05-08 00:08:42 +0000 | |
---|---|---|
committer | 2020-05-08 07:25:07 +0000 | |
commit | fc5e2ef08c78bcf4a60c5097ff3a7fa80e358522 (patch) | |
tree | 4c1d538f5faf72617e9088b8f99a368b999b32dd /runtime/common_runtime_test.cc | |
parent | 685c84775f7dfe23197b080e4730435fd80e6d27 (diff) |
Revert "Remove test_per_src from ART tests."
This reverts commit 8103e479d8f8447584582b2b70752029f7087776.
Reason for revert: asan run fails in multiple ways
Test: ran ./art/test/testrunner/run_build_test_target.py art-gtest-asan
Change-Id: Ib9f2887436a664b64c6410f56a25ae2dd0e0aab4
Diffstat (limited to 'runtime/common_runtime_test.cc')
-rw-r--r-- | runtime/common_runtime_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/common_runtime_test.cc b/runtime/common_runtime_test.cc index 090b2bd801..a846346edd 100644 --- a/runtime/common_runtime_test.cc +++ b/runtime/common_runtime_test.cc @@ -48,7 +48,6 @@ #include "gc/space/image_space.h" #include "gc_root-inl.h" #include "gtest/gtest.h" -#include "gtest_extras/IsolateMain.h" #include "handle_scope-inl.h" #include "interpreter/unstarted_runtime.h" #include "jni/java_vm_ext.h" @@ -659,7 +658,7 @@ __attribute__((visibility("default"))) __attribute__((weak)) void ArtTestGlobalInit() { } -int main(int argc, char** argv, char** envp) { +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. @@ -669,6 +668,7 @@ int main(int argc, char** argv, char** envp) { art::InitLogging(argv, art::Runtime::Abort); art::MemMap::Init(); LOG(INFO) << "Running main() from common_runtime_test.cc..."; + testing::InitGoogleTest(&argc, argv); ArtTestGlobalInit(); - return IsolateMain(argc, argv, envp); + return RUN_ALL_TESTS(); } |