hotspot/test/runtime/logging/ClassInitializationTest.java
changeset 37453 e333d1d43e75
parent 37044 f1965d5d1055
child 38151 fffedc5e5cf8
--- a/hotspot/test/runtime/logging/ClassInitializationTest.java	Mon Apr 11 09:39:49 2016 +0000
+++ b/hotspot/test/runtime/logging/ClassInitializationTest.java	Mon Apr 11 16:10:41 2016 -0400
@@ -62,6 +62,16 @@
             out.shouldContain("[Initialized").shouldContain("without side effects]");
             out.shouldHaveExitValue(0);
         }
+
+        // (3) classinit should turn off.
+        pb = ProcessTools.createJavaProcessBuilder("-Xlog:classinit=off",
+                                                   "-Xverify:all",
+                                                   "-Xmx64m",
+                                                   "BadMap50");
+        out = new OutputAnalyzer(pb.start());
+        out.shouldNotContain("[classinit]");
+        out.shouldNotContain("Fail over class verification to old verifier for: BadMap50");
+
     }
     public static class InnerClass {
         public static void main(String[] args) throws Exception {