summaryrefslogtreecommitdiff
path: root/dexlist/dexlist_test.cc
diff options
context:
space:
mode:
author Roland Levillain <rpl@google.com> 2019-03-29 20:20:16 +0000
committer Roland Levillain <rpl@google.com> 2019-04-12 13:47:09 +0100
commitfb6a5c00ef02cda7ea919d717daaf46abd0414e4 (patch)
tree9ecfaac9bee174b3b31e0294c46c4d32a5f7b714 /dexlist/dexlist_test.cc
parentf160394fda141184f0ec3d139ec5ca810f142bda (diff)
Add and use art::GetAndroidRuntimeBinDir.
This method returns the location of the directory containing the Android Runtime binaries, which is expected to be the Android Runtime APEX's bin directory on target and the Android Root's bin directory on host (at least for now). Also remove art::CommonArtTestImpl::GetTestAndroidRoot as it is no longer used. Test: ART gtests on host and target Bug: 121117762 Change-Id: I4593bbd4d675ca9d3f7b708482aac82c1892a9ad
Diffstat (limited to 'dexlist/dexlist_test.cc')
-rw-r--r--dexlist/dexlist_test.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/dexlist/dexlist_test.cc b/dexlist/dexlist_test.cc
index 39e5f8cd99..32bc735487 100644
--- a/dexlist/dexlist_test.cc
+++ b/dexlist/dexlist_test.cc
@@ -41,8 +41,7 @@ class DexListTest : public CommonRuntimeTest {
// Runs test with given arguments.
bool Exec(const std::vector<std::string>& args, std::string* error_msg) {
- std::string file_path = GetTestAndroidRoot();
- file_path += "/bin/dexlist";
+ std::string file_path = GetAndroidRuntimeBinDir() + "/dexlist";
EXPECT_TRUE(OS::FileExists(file_path.c_str())) << file_path << " should be a valid file path";
std::vector<std::string> exec_argv = { file_path };
exec_argv.insert(exec_argv.end(), args.begin(), args.end());