diff options
Diffstat (limited to 'runtime/dex_file_test.cc')
-rw-r--r-- | runtime/dex_file_test.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/dex_file_test.cc b/runtime/dex_file_test.cc index 134e284..b304779 100644 --- a/runtime/dex_file_test.cc +++ b/runtime/dex_file_test.cc @@ -146,6 +146,9 @@ static const DexFile* OpenDexFileBase64(const char* base64, if (!file->WriteFully(dex_bytes.get(), length)) { PLOG(FATAL) << "Failed to write base64 as dex file"; } + if (file->FlushCloseOrErase() != 0) { + PLOG(FATAL) << "Could not flush and close test file."; + } file.reset(); // read dex file |