mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-30 13:08:24 +00:00
8145704: Make test for classinit logging more robust
8145704: Make test for classinit logging more robust. Reviewed-by: hseigel, gtriantafill
This commit is contained in:
parent
18ee0a135b
commit
cf540ad2af
@ -62,6 +62,16 @@ public class ClassInitializationTest {
|
||||
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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user