diff options
| author | 2014-11-17 14:52:44 -0800 | |
|---|---|---|
| committer | 2014-11-17 15:36:43 -0800 | |
| commit | 9c7d8bcc60d3c80df074ebac6ec62cf60a852bfa (patch) | |
| tree | a72910b509d54f039a25a04191dbdfbb4338c660 | |
| parent | 974eb9554259536daa74a729ec917bf829ed0301 (diff) | |
Change IsZygote test to !IsCompiler
Enables test coverage through run test 118.
Change-Id: I21ce32e83629eb507b8440cebdd721d29171a984
| -rw-r--r-- | runtime/runtime.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc index d50a4f0d17..078e7d24e1 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -438,7 +438,8 @@ bool Runtime::Start() { 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) { |