OSDN Git Service

Revert "Compile checker run-tests with Jack"
authorNicolas Geoffray <ngeoffray@google.com>
Tue, 23 Feb 2016 18:17:46 +0000 (18:17 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Tue, 23 Feb 2016 18:17:46 +0000 (18:17 +0000)
Tests still faill.

Bug: 25635944
Bug: 19467889

This reverts commit fbeeb47fc63ec85891198b51b2309bb15f26527e.

Change-Id: I8f49dc6e8d3eb5f0de10636ef2685b7a2e08f297

test/555-checker-regression-x86const/build
test/run-test

index 92ddfc9..09dcc36 100644 (file)
@@ -27,12 +27,14 @@ mkdir classes-ex
 mv classes/UnresolvedClass.class classes-ex
 
 if [ ${USE_JACK} = "true" ]; then
-  jar cf classes.jill.jar -C classes .
-  jar cf classes-ex.jill.jar -C classes-ex .
+  # Create .jack files from classes generated with javac.
+  ${JILL} classes --output classes.jack
+  ${JILL} classes-ex --output classes-ex.jack
 
-  ${JACK} --import classes.jill.jar --output-dex .
+  # Create DEX files from .jack files.
+  ${JACK} --import classes.jack --output-dex .
   zip $TEST_NAME.jar classes.dex
-  ${JACK} --import classes-ex.jill.jar --output-dex .
+  ${JACK} --import classes-ex.jack --output-dex .
   zip ${TEST_NAME}-ex.jar classes.dex
 else
   if [ ${NEED_DEX} = "true" ]; then
index a7a9876..f1875d7 100755 (executable)
@@ -677,9 +677,9 @@ function arch_supports_read_barrier() {
 # Tests named '<number>-checker-*' will also have their CFGs verified with
 # Checker when compiled with Optimizing on host.
 if [[ "$TEST_NAME" =~ ^[0-9]+-checker- ]]; then
-  # Disable optimizations where Jack may simplify statements with constants
-  # (like 'null instanceof SomeType').
-  JACK="$JACK -D jack.optimization.expression-simplifier=false"
+  # Jack does not necessarily generate the same DEX output than dx. Because these tests depend
+  # on a particular DEX output, keep building them with dx for now (b/19467889).
+  USE_JACK="false"
 
   if [ "$runtime" = "art" -a "$image_suffix" = "-optimizing" ]; then
     # Optimizing has read barrier support for certain architectures