diff options
Diffstat (limited to 'runtime/gc/heap_test.cc')
| -rw-r--r-- | runtime/gc/heap_test.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/gc/heap_test.cc b/runtime/gc/heap_test.cc index 73196b20a2..14d78d8710 100644 --- a/runtime/gc/heap_test.cc +++ b/runtime/gc/heap_test.cc @@ -71,5 +71,17 @@ TEST_F(HeapTest, HeapBitmapCapacityTest) { bitmap->Set(fake_end_of_heap_object); } +class ZygoteHeapTest : public CommonRuntimeTest { + void SetUpRuntimeOptions(RuntimeOptions* options) { + CommonRuntimeTest::SetUpRuntimeOptions(options); + options->push_back(std::make_pair("-Xzygote", nullptr)); + } +}; + +TEST_F(ZygoteHeapTest, PreZygoteFork) { + // Exercise Heap::PreZygoteFork() to check it does not crash. + Runtime::Current()->GetHeap()->PreZygoteFork(); +} + } // namespace gc } // namespace art |