summaryrefslogtreecommitdiff
path: root/compiler/optimizing/constant_folding_test.cc
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2023-02-10 10:25:31 +0000
committer Treehugger Robot <treehugger-gerrit@google.com> 2023-02-13 18:35:10 +0000
commit2c50b3a4f31cb9e845f80299e684cd9937b61e24 (patch)
tree42033e2f48b6c6656f062daec1aefffa8cad92e0 /compiler/optimizing/constant_folding_test.cc
parentc5cfbde3674a04828b25e7511c38ee830f9c0568 (diff)
Don't run ReferenceTypePropagation without a Thread
Update some of our gtests to create a Runtime, as ReferenceTypePropagation expects to have one. Test: run gtests Change-Id: I75986b1a9dc0227ee05f507f2b03ffa8aa8f8e58
Diffstat (limited to 'compiler/optimizing/constant_folding_test.cc')
-rw-r--r--compiler/optimizing/constant_folding_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/constant_folding_test.cc b/compiler/optimizing/constant_folding_test.cc
index 7c3dae21d8..9acfa35326 100644
--- a/compiler/optimizing/constant_folding_test.cc
+++ b/compiler/optimizing/constant_folding_test.cc
@@ -32,7 +32,7 @@ namespace art HIDDEN {
/**
* Fixture class for the constant folding and dce tests.
*/
-class ConstantFoldingTest : public OptimizingUnitTest {
+class ConstantFoldingTest : public CommonCompilerTest, public OptimizingUnitTestHelper {
public:
ConstantFoldingTest() : graph_(nullptr) { }