OSDN Git Service

Fix run-test after introduction of VDEX
authorDavid Brazdil <dbrazdil@google.com>
Mon, 12 Sep 2016 17:49:58 +0000 (18:49 +0100)
committerDavid Brazdil <dbrazdil@google.com>
Mon, 12 Sep 2016 17:49:58 +0000 (18:49 +0100)
commitc93b3be140f6a57a572f2a4cdaf46aba87235a02
tree96e0d1d8b53b1eecf66188704ab12036632702e3
parent935cf1b7a5e55a8d9aeab7e8955012849f0c1b68
Fix run-test after introduction of VDEX

Run-test 119-noimage-patchoat used to fail due to a codepath in
OatFile which allows to create an instance of the class from an
existing ElfFile instance. This patch updates the codepath to require
an existing VdexFile as well.

Test: art/test/run-test 119
Bug: 30937355
Change-Id: I8fd0e47f07921aaee999f73711766ada9c35d214
runtime/oat_file.cc
runtime/oat_file.h
runtime/runtime.cc