diff options
author | 2015-11-12 11:49:06 +0000 | |
---|---|---|
committer | 2015-11-12 11:52:42 +0000 | |
commit | d1ef4362bf799f9f5d50e5edef8433664b503051 (patch) | |
tree | 59aaa140925efa790f787d5e1caf6d0cafd6ae15 /runtime/common_runtime_test.cc | |
parent | e4cf5892c2a244034900d49499c071b255571bba (diff) | |
parent | f32e8327da5dd33abe18662fbca5e584cd047816 (diff) |
Merge lmp changes into mnc.
Most merge conflicts are due to changes in the string representation.
They have been resolved in favour of "mnc-dev" since we've changed
the string representation there. Other changes relate to the
fact that there are now two jars in libcore (core-oj and core-libart).
Change-Id: I1fcc6e5f8dab8d1954dcddca0493563e7677d433
Diffstat (limited to 'runtime/common_runtime_test.cc')
-rw-r--r-- | runtime/common_runtime_test.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/runtime/common_runtime_test.cc b/runtime/common_runtime_test.cc index 5f9e413ed2..ff6d07d126 100644 --- a/runtime/common_runtime_test.cc +++ b/runtime/common_runtime_test.cc @@ -302,7 +302,12 @@ void CommonRuntimeTest::SetUp() { RuntimeOptions options; - std::string boot_class_path_string = "-Xbootclasspath:" + GetLibCoreDexFileName(); + std::string boot_class_path_string = "-Xbootclasspath"; + for (const std::string &core_dex_file_name : GetLibCoreDexFileNames()) { + boot_class_path_string += ":"; + boot_class_path_string += core_dex_file_name; + } + options.push_back(std::make_pair(boot_class_path_string, nullptr)); options.push_back(std::make_pair("-Xcheck:jni", nullptr)); options.push_back(std::make_pair(min_heap_string, nullptr)); @@ -406,8 +411,8 @@ void CommonRuntimeTest::TearDown() { Runtime::Current()->GetHeap()->VerifyHeap(); // Check for heap corruption after the test } -std::string CommonRuntimeTest::GetLibCoreDexFileName() { - return GetDexFileName("core-libart"); +std::vector<std::string> CommonRuntimeTest::GetLibCoreDexFileNames() { + return std::vector<std::string>({GetDexFileName("core-oj"), GetDexFileName("core-libart")}); } std::string CommonRuntimeTest::GetDexFileName(const std::string& jar_prefix) { |