Skip to content

Commit 348a052

Browse files
committed
8290846: sun/tools/jstatd/JstatdTest* tests should use VM options
Reviewed-by: cjplummer, sspitsyn
1 parent bc6a3c7 commit 348a052

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/jdk/sun/tools/jstatd/JstatGCUtilParser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public enum GcStatisticsType {
4343
}
4444

4545
public enum GcStatistics {
46-
S0(GcStatisticsType.PERCENTAGE),
47-
S1(GcStatisticsType.PERCENTAGE),
48-
E(GcStatisticsType.PERCENTAGE),
46+
S0(GcStatisticsType.PERCENTAGE_OR_DASH),
47+
S1(GcStatisticsType.PERCENTAGE_OR_DASH),
48+
E(GcStatisticsType.PERCENTAGE_OR_DASH),
4949
O(GcStatisticsType.PERCENTAGE),
5050
M(GcStatisticsType.PERCENTAGE_OR_DASH),
5151
CCS(GcStatisticsType.PERCENTAGE_OR_DASH),

test/jdk/sun/tools/jstatd/JstatdTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ private String getDestination() throws UnknownHostException {
128128
*/
129129
private OutputAnalyzer runJps() throws Exception {
130130
JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("jps");
131-
launcher.addVMArgs(Utils.getFilteredTestJavaOpts("-XX:+UsePerfData"));
132131
launcher.addVMArg("-XX:+UsePerfData");
133132
launcher.addToolArg(getDestination());
134133

@@ -252,6 +251,7 @@ private void cleanUpThread(ProcessThread thread) throws Throwable {
252251
*/
253252
private String[] getJstatdCmd() throws Exception {
254253
JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("jstatd");
254+
launcher.addVMArgs(Utils.getTestJavaOpts());
255255
launcher.addVMArg("-XX:+UsePerfData");
256256
String testSrc = System.getProperty("test.src");
257257
if (port != null) {

0 commit comments

Comments
 (0)