< prev index next >

test/serviceability/dcmd/gc/RunGCTest.java

Print this page

        

*** 41,51 **** * 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 */ public class RunGCTest { public void run(CommandExecutor executor) { executor.execute("GC.run"); --- 41,51 ---- * java.compiler * java.management * jdk.jvmstat/sun.jvmstat.monitor * @build jdk.test.lib.* * @build jdk.test.lib.dcmd.* ! * @run testng/othervm -Xlog:gc=debug:RunGC.gclog -XX:-ExplicitGCInvokesConcurrent RunGCTest */ public class RunGCTest { public void run(CommandExecutor executor) { executor.execute("GC.run");
*** 57,67 **** } 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)"); } @Test public void jmx() { run(new JMXExecutor()); --- 57,67 ---- } 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)"); } @Test public void jmx() { run(new JMXExecutor());
< prev index next >