8076971: sun/management/jmxremote/startstop/JMXStatusTest.java failed with AssertionError

Reviewed-by: sla, dholmes
This commit is contained in:
Jaroslav Bachorik 2015-04-27 10:13:21 +02:00
parent 883ba19236
commit a79d202015
2 changed files with 4 additions and 2 deletions

View File

@ -363,7 +363,8 @@ public class JMXStartStopTest {
throws Exception {
List<String> pbArgs = new ArrayList<>(Arrays.asList(
"-cp",
System.getProperty("test.class.path")
System.getProperty("test.class.path"),
"-XX:+UsePerfData"
));
pbArgs.addAll(Arrays.asList(args));
pbArgs.add(TEST_APP_NAME);

View File

@ -37,7 +37,7 @@ import jdk.testlibrary.ProcessTools;
* The test asserts that the expected text is being printed.
* @library /lib/testlibrary
* @build jdk.testlibrary.* PortAllocator TestApp ManagementAgentJcmd
* @run testng JMXStatusTest
* @run testng/othervm -XX:+UsePerfData JMXStatusTest
*/
public class JMXStatusTest {
private final static String TEST_APP_NAME = "TestApp";
@ -74,6 +74,7 @@ public class JMXStatusTest {
public static void setupClass() throws Exception {
testAppPb = ProcessTools.createJavaProcessBuilder(
"-cp", System.getProperty("test.class.path"),
"-XX:+UsePerfData",
TEST_APP_NAME
);
}