OSDN Git Service

ART: Fixup JDWP tests script
authorAndreas Gampe <agampe@google.com>
Thu, 31 Dec 2015 03:37:48 +0000 (19:37 -0800)
committerAndreas Gampe <agampe@google.com>
Sat, 3 Sep 2016 03:44:10 +0000 (20:44 -0700)
commit85b286b300eafd0c2a6d8cce50d449bd627d050d
tree4b031597a66e29fd0fc7672787e12c51f6d7f579
parenta02add68bb070ba049ea20b2d8905c7378c75dab
ART: Fixup JDWP tests script

The tests have problems on the host because of boot images. Vogar
by default runs in 32-bit mode, but the art script, used for forked
debuggee processes, by default runs in 64-bit. The JDWP forks also
do not set a boot classpath. With that mismatch, when the tests
are run in 32-bit mode on a 64-bit enabled host, the forked processes
will die.

Check whether a --variant parameter was passed to the test (and if
not assume it's x32). If the parameter is x32, then adapt the
debuggee command to ensure the forked runtime also runs in 32-bit
mode and finds the image from the controller. Similarly handle
the x64 case.

Change-Id: Ic22477e33702e1a7c1ca94466bf02df4cb201723
tools/run-jdwp-tests.sh