diff options
author | Brian Carlstrom <bdc@google.com> | 2013-09-03 22:45:51 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-09-03 22:46:35 -0700 |
commit | 5f67532efa0622ccfbbb4edf7d12098b26c19b35 (patch) | |
tree | c241723e6ee1ffb5807ca08578ea8200dd787be6 /compiler/image_test.cc | |
parent | 68708f536d11f8824d881b640f3902093075c0a6 (diff) | |
download | art-5f67532efa0622ccfbbb4edf7d12098b26c19b35.zip art-5f67532efa0622ccfbbb4edf7d12098b26c19b35.tar.gz art-5f67532efa0622ccfbbb4edf7d12098b26c19b35.tar.bz2 |
Fix image_test for SMALL_ART
Bug: 9618388
Change-Id: I8b13ef2bfec77479a60271d9b9f5379c9d7a2490
Diffstat (limited to 'compiler/image_test.cc')
-rw-r--r-- | compiler/image_test.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/image_test.cc b/compiler/image_test.cc index 08c32c2..6464a4c 100644 --- a/compiler/image_test.cc +++ b/compiler/image_test.cc @@ -51,6 +51,9 @@ TEST_F(ImageTest, WriteRead) { // We shouldn't need to do this. runtime_->SetCompilerFilter(Runtime::kInterpretOnly); #endif + for (const DexFile* dex_file : class_linker->GetBootClassPath()) { + dex_file->EnableWrite(); + } compiler_driver_->CompileAll(class_loader, class_linker->GetBootClassPath(), timings); ScopedObjectAccess soa(Thread::Current()); |