test/gc/startup_warnings/TestParallelScavengeSerialOld.java

Print this page

        

*** 36,46 **** public class TestParallelScavengeSerialOld { public static void main(String args[]) throws Exception { ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseParallelGC", "-XX:-UseParallelOldGC", "-version"); OutputAnalyzer output = new OutputAnalyzer(pb.start()); ! output.shouldNotContain("warning"); output.shouldNotContain("error"); output.shouldHaveExitValue(0); } } --- 36,46 ---- public class TestParallelScavengeSerialOld { public static void main(String args[]) throws Exception { ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseParallelGC", "-XX:-UseParallelOldGC", "-version"); OutputAnalyzer output = new OutputAnalyzer(pb.start()); ! output.shouldNotContain("deprecated"); output.shouldNotContain("error"); output.shouldHaveExitValue(0); } }