< prev index next >
test/serviceability/dcmd/gc/RunGCTest.java
Print this page
@@ -41,11 +41,11 @@
* java.compiler
* java.management
* 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) {
executor.execute("GC.run");
@@ -57,11 +57,11 @@
} catch (IOException e) {
Assert.fail("Test error: Could not read GC log file: " + gcLogPath, e);
}
OutputAnalyzer output = new OutputAnalyzer(gcLog, "");
- output.shouldContain("[Full GC (Diagnostic Command)");
+ output.shouldContain("Full GC (Diagnostic Command)");
}
@Test
public void jmx() {
run(new JMXExecutor());
< prev index next >