changeset 14062:546310bd4ee5

Interpreter: Run tests with assertions and system assertions enabled; 2 failures
author briangoetz
date Sun, 12 Jun 2016 18:39:17 -0400
parents 04b3b59f601e
children 00da8e787d47
files interpreter/build.xml interpreter/test-helpers/test/valhalla/interpreter/AnnoHelper.java interpreter/test/valhalla/interpreter/InterpreterTest.java
diffstat 3 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/interpreter/build.xml	Sat Jun 11 19:59:11 2016 -0400
+++ b/interpreter/build.xml	Sun Jun 12 18:39:17 2016 -0400
@@ -72,6 +72,8 @@
                 haltOnFailure="true" verbose="2">
             <classfileset dir="${interpreter.test.classes}" includes="**/*.class" />
             <jvmarg value="-Xverify:none" />
+            <jvmarg value="-ea" />
+            <jvmarg value="-esa" />
         </testng>
     </target>
 
--- a/interpreter/test-helpers/test/valhalla/interpreter/AnnoHelper.java	Sat Jun 11 19:59:11 2016 -0400
+++ b/interpreter/test-helpers/test/valhalla/interpreter/AnnoHelper.java	Sun Jun 12 18:39:17 2016 -0400
@@ -25,6 +25,7 @@
 package valhalla.interpreter;
 
 import java.lang.annotation.Annotation;
+import java.lang.annotation.Repeatable;
 import java.lang.reflect.Method;
 
 /**
@@ -34,7 +35,6 @@
  */
 public class AnnoHelper {
     public static void testAnno() throws NoSuchMethodException, ClassNotFoundException {
-        Class clazz = Class.forName("java.lang.annotation.Repeatable").asSubclass(Annotation.class);
-        clazz.getMethod("value");
+        Repeatable.class.getMethod("value");
     }
 }
--- a/interpreter/test/valhalla/interpreter/InterpreterTest.java	Sat Jun 11 19:59:11 2016 -0400
+++ b/interpreter/test/valhalla/interpreter/InterpreterTest.java	Sun Jun 12 18:39:17 2016 -0400
@@ -265,7 +265,6 @@
     }
 
     public void testAnno() throws Throwable {
-        interpreter.TRACING = true;
         interpreter.invokestatic(ANNO_HELPER, "testAnno", "()V");
     }
 }