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/monitor_test.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/monitor_test.cc') diff --git a/runtime/monitor_test.cc b/runtime/monitor_test.cc index 66008f3ff2..64986b65d9 100644 --- a/runtime/monitor_test.cc +++ b/runtime/monitor_test.cc @@ -35,12 +35,17 @@ namespace art { class MonitorTest : public CommonRuntimeTest { protected: + MonitorTest() { + use_boot_image_ = true; // Make the Runtime creation cheaper. + } + void SetUpRuntimeOptions(RuntimeOptions *options) override { // Use a smaller heap SetUpRuntimeOptionsForFillHeap(options); options->push_back(std::make_pair("-Xint", nullptr)); } + public: std::unique_ptr monitor_; Handle object_; -- cgit v1.2.3-59-g8ed1b