8072401: [TESTBUG] Some of the newly added DCMD tests fail due to lack of -XX:+UsePerfData
authormiauno
Tue, 03 Feb 2015 12:26:40 +0100
changeset 28826 81fdc0e7d49e
parent 28825 4557637e6f37
child 28827 a94bd8effda9
8072401: [TESTBUG] Some of the newly added DCMD tests fail due to lack of -XX:+UsePerfData Reviewed-by: jbachorik, sla
hotspot/test/serviceability/dcmd/framework/HelpTest.java
hotspot/test/serviceability/dcmd/framework/InvalidCommandTest.java
hotspot/test/serviceability/dcmd/framework/VMVersionTest.java
--- a/hotspot/test/serviceability/dcmd/framework/HelpTest.java	Mon Feb 02 21:19:39 2015 +0000
+++ b/hotspot/test/serviceability/dcmd/framework/HelpTest.java	Tue Feb 03 12:26:40 2015 +0100
@@ -35,7 +35,7 @@
  * @library /testlibrary
  * @build com.oracle.java.testlibrary.*
  * @build com.oracle.java.testlibrary.dcmd.*
- * @run testng HelpTest
+ * @run testng/othervm -XX:+UsePerfData HelpTest
  */
 public class HelpTest {
     public void run(CommandExecutor executor) {
--- a/hotspot/test/serviceability/dcmd/framework/InvalidCommandTest.java	Mon Feb 02 21:19:39 2015 +0000
+++ b/hotspot/test/serviceability/dcmd/framework/InvalidCommandTest.java	Tue Feb 03 12:26:40 2015 +0100
@@ -35,7 +35,7 @@
  * @library /testlibrary
  * @build com.oracle.java.testlibrary.*
  * @build com.oracle.java.testlibrary.dcmd.*
- * @run testng InvalidCommandTest
+ * @run testng/othervm -XX:+UsePerfData InvalidCommandTest
  */
 public class InvalidCommandTest {
 
--- a/hotspot/test/serviceability/dcmd/framework/VMVersionTest.java	Mon Feb 02 21:19:39 2015 +0000
+++ b/hotspot/test/serviceability/dcmd/framework/VMVersionTest.java	Tue Feb 03 12:26:40 2015 +0100
@@ -36,7 +36,7 @@
  * @library /testlibrary
  * @build com.oracle.java.testlibrary.*
  * @build com.oracle.java.testlibrary.dcmd.*
- * @run testng VMVersionTest
+ * @run testng/othervm -XX:+UsePerfData VMVersionTest
  */
 public class VMVersionTest {
     public void run(CommandExecutor executor) {