jdk/test/java/lang/instrument/RedefineMethodWithAnnotations.sh
changeset 16924 8a86b4fa429b
parent 16022 3f1545eccc6f
child 30376 2ccf2cf7ea48
--- a/jdk/test/java/lang/instrument/RedefineMethodWithAnnotations.sh	Wed Apr 17 16:11:19 2013 +0100
+++ b/jdk/test/java/lang/instrument/RedefineMethodWithAnnotations.sh	Wed Apr 17 12:50:45 2013 -0400
@@ -68,11 +68,12 @@
     RedefineMethodWithAnnotationsAnnotations.java
 
 "${JAVA}" ${TESTVMOPTS} -javaagent:RedefineMethodWithAnnotationsAgent.jar \
+    -XX:+StressLdcRewrite -XX:+IgnoreUnrecognizedVMOptions \
     -cp "${TESTCLASSES}" RedefineMethodWithAnnotationsApp > output.log 2>&1
 cat output.log
 
-MESG="Exception"
-grep "$MESG" output.log
+MESG="Exception|fatal"
+egrep "$MESG" output.log
 result=$?
 if [ "$result" = 0 ]; then
     echo "FAIL: found '$MESG' in the test output"