dex2oat: default to speed-profile if we have a profile.
And move the check for /system/etc/boot-image.prof from
AndroidRuntime.cpp to the deprecated GenerateImage() in
art/runtime/gc/space/image_space.cc . If it's not found,
just report the error and compile with the "speed" filter.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: aosp_taimen-userdebug boots.
Bug: 119800099
Bug: 148928928
Change-Id: I536ed7e6d7ebaa562cba3448a37c5d873bc0a682
diff --git a/test/knownfailures.json b/test/knownfailures.json
index bb80531..f5d51c1 100644
--- a/test/knownfailures.json
+++ b/test/knownfailures.json
@@ -780,7 +780,7 @@
},
{
"tests": ["004-StackWalk"],
- "variant": "interp-ac | interpreter | jit | no-prebuild | no-image | trace | redefine-stress | jvmti-stress | debuggable",
+ "variant": "speed-profile | interp-ac | interpreter | jit | no-prebuild | no-image | trace | redefine-stress | jvmti-stress | debuggable",
"description": ["Test is designed to only check --optimizing"]
},
{