summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rw-r--r--compiler/image_test.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/image_test.cc b/compiler/image_test.cc
index e8bbaef1e9..d52ec0ad5a 100644
--- a/compiler/image_test.cc
+++ b/compiler/image_test.cc
@@ -129,11 +129,7 @@ TEST_F(ImageTest, WriteRead) {
runtime_.reset();
java_lang_dex_file_ = NULL;
- std::string error_msg;
- std::unique_ptr<const DexFile> dex(DexFile::Open(GetLibCoreDexFileName().c_str(),
- GetLibCoreDexFileName().c_str(),
- &error_msg));
- ASSERT_TRUE(dex.get() != nullptr) << error_msg;
+ std::unique_ptr<const DexFile> dex(LoadExpectSingleDexFile(GetLibCoreDexFileName().c_str()));
// Remove the reservation of the memory for use to load the image.
UnreserveImageSpace();