Eliminate false negatives from ART 141-class-unload test.

This test looks for memory mappings of the 141-class-unload
class file. In previous versions of Android these mappings
appeared as lines in the file /proc/<pid>/maps which contained
the string "@141-class-unload-ex.jar". Android now uses a
different encoding for these mappings. Memory mappings of the
141-class-unload class file now contain either the string
"141-class-unload-ex.odex", or the string
"141-class-unload-ex.vdex". The test has been updated to now
search for mappings which contain either of these strings.

To see what entries exist in /proc/<pid>/maps file run the ART
test 141-class-unload under the control of the debugger, and set
a breakpoint for Heap::CollectGarbageInternal(). When the
breakpoint is triggered run "adb shell" in a different terminal
window and run the command
"grep 141-class-unload-ex /proc/<pid>/maps".

Test: ./run-test --gdb --debuggable --no-optimize --always-clean 141
This test was run against the emulators for aosp_arm-eng,
aosp_arm64-eng, aosp_mips-eng, aosp_mips64-eng, aosp_x86-eng,
and aosp_x86_64-eng.

Change-Id: Iadf8dc9cb9cc6884d82ff9993c13d24369c4955c
1 file changed