Make valgrind happy; just a test bug.
Change-Id: Ia9217517551546f3de695733adf33d1592bec0f2
diff --git a/src/common_test.h b/src/common_test.h
index b3fafe4..0456c35 100644
--- a/src/common_test.h
+++ b/src/common_test.h
@@ -222,7 +222,7 @@
int mkdir_result = mkdir(art_cache_.c_str(), 0700);
ASSERT_EQ(mkdir_result, 0);
- java_lang_dex_file_.reset(GetLibCoreDex());
+ java_lang_dex_file_.reset(DexFile::Open(GetLibCoreDexFileName(), ""));
std::string boot_class_path;
boot_class_path += "-Xbootclasspath:";
@@ -320,11 +320,6 @@
return std::string("/system/framework/core.jar");
}
- const DexFile* GetLibCoreDex() {
- std::string libcore_dex_file_name(GetLibCoreDexFileName());
- return DexFile::Open(libcore_dex_file_name, "");
- }
-
const DexFile* OpenTestDexFile(const char* name) {
CHECK(name != NULL);
std::string filename;