diff options
author | 2022-10-13 08:08:28 +0000 | |
---|---|---|
committer | 2022-10-14 07:48:55 +0000 | |
commit | 76990bb2404f4b0b73b56f3096e67746c1a5ceb0 (patch) | |
tree | 48f58e9feae49055e3bc6bf5d69e695ce147e9b9 /runtime/class_table_test.cc | |
parent | 07c7d430d72cdb07b8b5f20b6335fd236aab6fc1 (diff) |
ART: Speed up some gtests.
Avoid creating `Runtime` or create the `Runtime` with a boot
image to make the test setup faster.
Test: m test-art-host-gtest
Test: run-gtests.sh
Change-Id: I3f09de81491402442f1704d25bb06de995d8a3ca
Diffstat (limited to 'runtime/class_table_test.cc')
-rw-r--r-- | runtime/class_table_test.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/class_table_test.cc b/runtime/class_table_test.cc index 7dbeba51c0..14c5d70207 100644 --- a/runtime/class_table_test.cc +++ b/runtime/class_table_test.cc @@ -66,7 +66,12 @@ class CollectRootVisitor { }; -class ClassTableTest : public CommonRuntimeTest {}; +class ClassTableTest : public CommonRuntimeTest { + protected: + ClassTableTest() { + use_boot_image_ = true; // Make the Runtime creation cheaper. + } +}; TEST_F(ClassTableTest, ClassTable) { ScopedObjectAccess soa(Thread::Current()); |