summaryrefslogtreecommitdiff
path: root/runtime/common_runtime_test.cc
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2020-02-13 15:53:01 +0000
committer Treehugger Robot <treehugger-gerrit@google.com> 2020-03-26 18:03:53 +0000
commit0c0f3026ba429177cfb348256d74f3cf00a39c41 (patch)
treedccf8ac4632fd90095f0a6c616a3b9a9b52db871 /runtime/common_runtime_test.cc
parentf368882656cce265d732cba237fac7bc312934a6 (diff)
Host gtests: Use the apex boot image instead of core.art.
Closely mirror the behaviour of target tests. Test: m test-art-host-gtest Bug: 147817558 Change-Id: If9a1d34cef022fa93c9c09c8f31adc26ac71afdc
Diffstat (limited to 'runtime/common_runtime_test.cc')
-rw-r--r--runtime/common_runtime_test.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/common_runtime_test.cc b/runtime/common_runtime_test.cc
index ed8a024f9a..640e182dbd 100644
--- a/runtime/common_runtime_test.cc
+++ b/runtime/common_runtime_test.cc
@@ -523,22 +523,22 @@ bool CommonRuntimeTestImpl::RunDex2Oat(const std::vector<std::string>& args,
}
std::string CommonRuntimeTestImpl::GetImageDirectory() {
+ std::string prefix;
if (IsHost()) {
const char* host_dir = getenv("ANDROID_HOST_OUT");
CHECK(host_dir != nullptr);
- return std::string(host_dir) + "/framework";
- } else {
- return std::string("/apex/com.android.art/javalib");
+ prefix = host_dir;
}
+ return prefix + kAndroidArtApexDefaultPath + "/javalib";
}
std::string CommonRuntimeTestImpl::GetImageLocation() {
- return GetImageDirectory() + (IsHost() ? "/core.art" : "/boot.art");
+ return GetImageDirectory() + "/boot.art";
}
std::string CommonRuntimeTestImpl::GetSystemImageFile() {
std::string isa = GetInstructionSetString(kRuntimeISA);
- return GetImageDirectory() + "/" + isa + (IsHost() ? "/core.art" : "/boot.art");
+ return GetImageDirectory() + "/" + isa + "/boot.art";
}
void CommonRuntimeTestImpl::EnterTransactionMode() {