8231943: ZGC: Enable serviceability/dcmd/gc/RunGCTest
Reviewed-by: tschatzl, eosterlund, sspitsyn
This commit is contained in:
parent
f751808df9
commit
db89b5fdf9
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -36,13 +36,12 @@ import jdk.test.lib.dcmd.JMXExecutor;
|
|||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Test of diagnostic command GC.run
|
* @summary Test of diagnostic command GC.run
|
||||||
* @requires vm.gc != "Z"
|
|
||||||
* @library /test/lib
|
* @library /test/lib
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* java.compiler
|
* java.compiler
|
||||||
* java.management
|
* java.management
|
||||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||||
* @run testng/othervm -Xlog:gc=debug:RunGC.gclog -XX:-ExplicitGCInvokesConcurrent RunGCTest
|
* @run testng/othervm -Xlog:gc:RunGC.gclog -XX:-ExplicitGCInvokesConcurrent RunGCTest
|
||||||
*/
|
*/
|
||||||
public class RunGCTest {
|
public class RunGCTest {
|
||||||
public void run(CommandExecutor executor) {
|
public void run(CommandExecutor executor) {
|
||||||
@ -58,7 +57,7 @@ public class RunGCTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
OutputAnalyzer output = new OutputAnalyzer(gcLog, "");
|
OutputAnalyzer output = new OutputAnalyzer(gcLog, "");
|
||||||
output.shouldContain("Pause Full (Diagnostic Command)");
|
output.shouldContain("(Diagnostic Command)");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user