test/gc/startup_warnings/TestCMSNoIncrementalMode.java

Print this page

        

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