8076971: sun/management/jmxremote/startstop/JMXStatusTest.java failed with AssertionError
Reviewed-by: sla, dholmes
--- a/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java Mon Apr 27 10:12:56 2015 +0200
+++ b/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java Mon Apr 27 10:13:21 2015 +0200
@@ -363,7 +363,8 @@
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);
--- a/jdk/test/sun/management/jmxremote/startstop/JMXStatusTest.java Mon Apr 27 10:12:56 2015 +0200
+++ b/jdk/test/sun/management/jmxremote/startstop/JMXStatusTest.java Mon Apr 27 10:13:21 2015 +0200
@@ -37,7 +37,7 @@
* 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 static void setupClass() throws Exception {
testAppPb = ProcessTools.createJavaProcessBuilder(
"-cp", System.getProperty("test.class.path"),
+ "-XX:+UsePerfData",
TEST_APP_NAME
);
}