From 76990bb2404f4b0b73b56f3096e67746c1a5ceb0 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 13 Oct 2022 08:08:28 +0000 Subject: 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 --- runtime/gc/heap_verification_test.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runtime/gc/heap_verification_test.cc') diff --git a/runtime/gc/heap_verification_test.cc b/runtime/gc/heap_verification_test.cc index 789a8e398f..a7583fe7f1 100644 --- a/runtime/gc/heap_verification_test.cc +++ b/runtime/gc/heap_verification_test.cc @@ -33,7 +33,9 @@ namespace gc { class VerificationTest : public CommonRuntimeTest { protected: - VerificationTest() {} + VerificationTest() { + use_boot_image_ = true; // Make the Runtime creation cheaper. + } template ObjPtr> AllocObjectArray(Thread* self, size_t length) -- cgit v1.2.3-59-g8ed1b