diff options
author | Aart Bik <ajcbik@google.com> | 2018-02-08 11:23:07 -0800 |
---|---|---|
committer | Aart Bik <ajcbik@google.com> | 2018-02-08 11:23:07 -0800 |
commit | e78471d19081a53ed13d9078b000b78b6c975e1f (patch) | |
tree | 99753e6a78f4d37bdac7f62da13f6b6ea91defb7 /test/008-exceptions/src/MultiDexBadInit.java | |
parent | 6568c1c52ca504200c1852b92c1029728938298d (diff) |
Make exception test more robust against dex changes.
Rationale:
With the shift from dx to d8, dex bytecode may be layed out
slightly different. The exception test was not particularly
robust against this, as it was looking for instruction at
dex_pc == 3 in method g(). Incidentialy, the way it was setup,
it would even use that dex_pc for querying f(), which seemed
unintentional (and makes it hard to make the test more robust
by e.g. looking up the new instance instruction). Therefore,
test was made more robust by simply assuming dex_pc == 0,
which consistently maps to first statement in source.
Bug: 73050355
Test: exception_test
Change-Id: Ic5b2784a48ae10d139c0b77a3bbfcc53b58a5b42
Diffstat (limited to 'test/008-exceptions/src/MultiDexBadInit.java')
0 files changed, 0 insertions, 0 deletions