summaryrefslogtreecommitdiffstats
path: root/compiler/image_test.cc
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2013-09-03 22:45:51 -0700
committerBrian Carlstrom <bdc@google.com>2013-09-03 22:46:35 -0700
commit5f67532efa0622ccfbbb4edf7d12098b26c19b35 (patch)
treec241723e6ee1ffb5807ca08578ea8200dd787be6 /compiler/image_test.cc
parent68708f536d11f8824d881b640f3902093075c0a6 (diff)
downloadart-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.cc3
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());