Change IsZygote test to !IsCompiler
Enables test coverage through run test 118.
Change-Id: I21ce32e83629eb507b8440cebdd721d29171a984
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index d50a4f0..078e7d2 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -438,7 +438,8 @@
started_ = true;
- if (IsZygote()) {
+ // Use !IsCompiler so that we get test coverage, tests are never the zygote.
+ if (!IsCompiler()) {
ScopedObjectAccess soa(self);
gc::space::ImageSpace* image_space = heap_->GetImageSpace();
if (image_space != nullptr) {