< prev index next >
test/gc/startup_warnings/TestParNewSerialOld.java
Print this page
rev 8156 : 8068582: UseSerialGC not always set up properly
Reviewed-by: jmasa, brutisso, sjohanss
*** 38,48 ****
public class TestParNewSerialOld {
public static void main(String args[]) throws Exception {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseParNewGC", "-version");
OutputAnalyzer output = new OutputAnalyzer(pb.start());
! output.shouldContain("It is not possible to combine the ParNew young collector with the Serial old collector.");
output.shouldContain("Error");
output.shouldHaveExitValue(1);
}
}
--- 38,48 ----
public class TestParNewSerialOld {
public static void main(String args[]) throws Exception {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseParNewGC", "-version");
OutputAnalyzer output = new OutputAnalyzer(pb.start());
! output.shouldContain("It is not possible to combine the ParNew young collector with anything other than the CMS collector.");
output.shouldContain("Error");
output.shouldHaveExitValue(1);
}
}
< prev index next >