8145704: Make test for classinit logging more robust.
authormockner
Mon, 11 Apr 2016 16:10:41 -0400
changeset 37453 e333d1d43e75
parent 37444 16caac2c1d9b
child 37454 abe575799208
8145704: Make test for classinit logging more robust. Summary: 8145704: Make test for classinit logging more robust. Reviewed-by: hseigel, gtriantafill
hotspot/test/runtime/logging/ClassInitializationTest.java
--- 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 {