changeset 10526:a3ac9c0b19a9

8027358: sun/management/jmxremote/bootstrap/LocalManagementTest.java failing since JDK-8004926 Reviewed-by: alanb, egahlin
author jbachorik
date Tue, 29 Oct 2013 21:49:46 +0100
parents 331d8ced56dc
children 4071c853edff
files test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java test/sun/management/jmxremote/bootstrap/LocalManagementTest.java
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java	Tue Oct 29 11:34:30 2013 -0700
+++ b/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java	Tue Oct 29 21:49:46 2013 +0100
@@ -35,7 +35,7 @@
 /**
  * @test
  * @bug 6434402 8004926
- * @library ../../../../lib/testlibrary
+ * @library /lib/testlibrary
  * @build TestManager TestApplication CustomLauncherTest
  * @run main CustomLauncherTest
  * @author Jaroslav Bachorik
--- a/test/sun/management/jmxremote/bootstrap/LocalManagementTest.java	Tue Oct 29 11:34:30 2013 -0700
+++ b/test/sun/management/jmxremote/bootstrap/LocalManagementTest.java	Tue Oct 29 21:49:46 2013 +0100
@@ -35,7 +35,7 @@
 
 /**
  * @test
- * @library ../../../../lib/testlibrary
+ * @library /lib/testlibrary
  * @bug 5016507 6173612 6319776 6342019 6484550 8004926
  * @summary Start a managed VM and test that a management tool can connect
  *          without connection or username/password details.
@@ -108,6 +108,8 @@
                 "=com.sun.management.jmxremote.port=7775," +
                 "com.sun.management.jmxremote.authenticate=false," +
                 "com.sun.management.jmxremote.ssl=false",
+                "-cp",
+                TEST_CLASSES,
                 "TestApplication",
                 "-exit"
             );
@@ -160,6 +162,9 @@
 
     private static boolean doTest(String arg) throws Exception {
         List<String> args = new ArrayList<>();
+        args.add("-cp");
+        args.add(TEST_CLASSES);
+
         if (arg != null) {
             args.add(arg);
         }