--- old/test/serviceability/dcmd/gc/RunGCTest.java 2015-11-19 15:35:38.714128166 +0100 +++ new/test/serviceability/dcmd/gc/RunGCTest.java 2015-11-19 15:35:38.598128170 +0100 @@ -43,7 +43,7 @@ * jdk.jvmstat/sun.jvmstat.monitor * @build jdk.test.lib.* * @build jdk.test.lib.dcmd.* - * @run testng/othervm -XX:+PrintGCDetails -Xloggc:RunGC.gclog -XX:-ExplicitGCInvokesConcurrent RunGCTest + * @run testng/othervm -Xlog:gc=debug:RunGC.gclog -XX:-ExplicitGCInvokesConcurrent RunGCTest */ public class RunGCTest { public void run(CommandExecutor executor) { @@ -59,7 +59,7 @@ } OutputAnalyzer output = new OutputAnalyzer(gcLog, ""); - output.shouldContain("[Full GC (Diagnostic Command)"); + output.shouldContain("Full GC (Diagnostic Command)"); } @Test