diff options
author | Igor Murashkin <iam@google.com> | 2017-06-19 14:33:06 -0700 |
---|---|---|
committer | Igor Murashkin <iam@google.com> | 2017-06-21 08:19:34 -0700 |
commit | 1c843e9caf5a5e3b73275fc4845d4bdbc8f3a03a (patch) | |
tree | 9d51b8d84acb2387ca5795fb4ebf840c49a35bbc /compiler/optimizing/graph_visualizer.cc | |
parent | 4db66ab6ea7ba0b7c08bbecd20b8f3df0e7ba648 (diff) |
test: enable javac/dx to import libcore on the bootclasspath
Fixes 12 tests with javac/dx.
Previously, javac with the default bootclasspath (unspecified) was used,
meaning that it would usually pickup rt.jar from a developer's JDK system
install.
With javac-helper.sh, libcore is used for the javac -bootclasspath,
enabling art tests to load libcore-specific packages such as libcore or
dalvik (in particular, it uses the output of art/tools/bootjars.sh which
calculates the correct bootclasspath from the build artifacts).
To get libcore on the bootclasspath, source files must be placed in a
'art/test/$TESTNAME/src-art' directory. Otherwise the old behavior is
kept to encourage tests to be cross-platform compatible.
The minimal set of tests that relied on 'import dalvik/import libcore'
had their src directories renamed to src-art, and are now building
successfully.
Test: ANDROID_COMPILE_WITH_JACK=false art/test.py
Bug: 36902714
Change-Id: Iafd245de9e04c312c5ac107897e34d7b97191726
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions