changeset 10857:e245b6d8ed34

8145704: Make test for classinit logging more robust. Summary: 8145704: Make test for classinit logging more robust. Reviewed-by: hseigel, gtriantafill
author mockner
date Mon, 11 Apr 2016 16:10:41 -0400
parents f989a68855a3
children 4f9ee8da102f
files test/runtime/logging/ClassInitializationTest.java
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/runtime/logging/ClassInitializationTest.java	Mon Apr 11 09:39:49 2016 +0000
+++ b/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 {