8231943: ZGC: Enable serviceability/dcmd/gc/RunGCTest

Reviewed-by: tschatzl, eosterlund, sspitsyn
This commit is contained in:
Per Lidén 2019-10-21 09:55:31 +02:00
parent f751808df9
commit db89b5fdf9

View File

@ -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.
*
* This code is free software; you can redistribute it and/or modify it
@ -36,13 +36,12 @@ import jdk.test.lib.dcmd.JMXExecutor;
/*
* @test
* @summary Test of diagnostic command GC.run
* @requires vm.gc != "Z"
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.compiler
* java.management
* 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 void run(CommandExecutor executor) {
@ -58,7 +57,7 @@ public class RunGCTest {
}
OutputAnalyzer output = new OutputAnalyzer(gcLog, "");
output.shouldContain("Pause Full (Diagnostic Command)");
output.shouldContain("(Diagnostic Command)");
}
@Test