8043520: Serviceability tests using @library failing with java.lang.NoClassDefFoundError
authorykantser
Thu, 22 May 2014 11:05:36 +0200
changeset 24509 5d02a6d25f78
parent 24508 b4afda4d4fa1
child 24510 a96915fc059d
8043520: Serviceability tests using @library failing with java.lang.NoClassDefFoundError Reviewed-by: sla, egahlin
jdk/test/com/sun/jdi/BadHandshakeTest.java
jdk/test/com/sun/jdi/ExclusiveBind.java
jdk/test/com/sun/tools/attach/TempDirTest.java
jdk/test/java/lang/instrument/DaemonThread/TestDaemonThread.java
jdk/test/java/lang/management/MemoryMXBean/ResetPeakMemoryUsage.java
jdk/test/sun/management/jdp/JdpDefaultsTest.java
jdk/test/sun/management/jdp/JdpOffTest.java
jdk/test/sun/management/jdp/JdpSpecificAddressTest.java
jdk/test/sun/management/jmxremote/bootstrap/LocalManagementTest.java
jdk/test/sun/management/jmxremote/bootstrap/PasswordFilePermissionTest.java
jdk/test/sun/management/jmxremote/bootstrap/RmiBootstrapTest.sh
jdk/test/sun/management/jmxremote/bootstrap/RmiRegistrySslTest.java
jdk/test/sun/management/jmxremote/bootstrap/RmiSslBootstrapTest.sh
jdk/test/sun/management/jmxremote/bootstrap/SSLConfigFilePermissionTest.java
jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java
jdk/test/sun/tools/jstat/JStatInterval.java
jdk/test/sun/tools/jstatd/TestJstatdDefaults.java
jdk/test/sun/tools/jstatd/TestJstatdExternalRegistry.java
jdk/test/sun/tools/jstatd/TestJstatdPort.java
jdk/test/sun/tools/jstatd/TestJstatdPortAndServer.java
jdk/test/sun/tools/jstatd/TestJstatdServer.java
jdk/test/sun/tools/jstatd/TestJstatdUsage.java
--- a/jdk/test/com/sun/jdi/BadHandshakeTest.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/com/sun/jdi/BadHandshakeTest.java	Thu May 22 11:05:36 2014 +0200
@@ -26,7 +26,7 @@
  * @summary Check that a bad handshake doesn't cause a debuggee to abort
  * @library /lib/testlibrary
  *
- * @build VMConnection BadHandshakeTest Exit0
+ * @build jdk.testlibrary.* VMConnection BadHandshakeTest Exit0
  * @run main BadHandshakeTest
  *
  */
--- a/jdk/test/com/sun/jdi/ExclusiveBind.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/com/sun/jdi/ExclusiveBind.java	Thu May 22 11:05:36 2014 +0200
@@ -27,8 +27,7 @@
  *          at the same time.
  * @library /lib/testlibrary
  *
- * @build jdk.testlibrary.ProcessTools jdk.testlibrary.JDKToolLauncher jdk.testlibrary.Utils
- * @build VMConnection ExclusiveBind HelloWorld
+ * @build jdk.testlibrary.* VMConnection ExclusiveBind HelloWorld
  * @run main ExclusiveBind
  */
 import java.net.ServerSocket;
--- a/jdk/test/com/sun/tools/attach/TempDirTest.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/com/sun/tools/attach/TempDirTest.java	Thu May 22 11:05:36 2014 +0200
@@ -38,7 +38,7 @@
  * @bug 8033104
  * @summary Test to make sure attach and jvmstat works correctly when java.io.tmpdir is set
  * @library /lib/testlibrary
- * @run build Application Shutdown RunnerUtil
+ * @run build jdk.testlibrary.* Application Shutdown RunnerUtil
  * @run main TempDirTest
  */
 
--- a/jdk/test/java/lang/instrument/DaemonThread/TestDaemonThread.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/java/lang/instrument/DaemonThread/TestDaemonThread.java	Thu May 22 11:05:36 2014 +0200
@@ -26,7 +26,7 @@
  * @summary Assert in java.lang.instrument agents during shutdown when classloading occurs after shutdown
  * @library /lib/testlibrary
  *
- * @build DummyAgent DummyClass TestDaemonThreadLauncher TestDaemonThread
+ * @build jdk.testlibrary.* DummyAgent DummyClass TestDaemonThreadLauncher TestDaemonThread
  * @run shell ../MakeJAR3.sh DummyAgent
  * @run main TestDaemonThreadLauncher /timeout=240
  *
--- a/jdk/test/java/lang/management/MemoryMXBean/ResetPeakMemoryUsage.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/java/lang/management/MemoryMXBean/ResetPeakMemoryUsage.java	Thu May 22 11:05:36 2014 +0200
@@ -33,7 +33,7 @@
  * @author  Mandy Chung
  *
  * @library /lib/testlibrary/
- * @build ResetPeakMemoryUsage MemoryUtil RunUtil
+ * @build jdk.testlibrary.* ResetPeakMemoryUsage MemoryUtil RunUtil
  * @run main ResetPeakMemoryUsage
  */
 
--- a/jdk/test/sun/management/jdp/JdpDefaultsTest.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/management/jdp/JdpDefaultsTest.java	Thu May 22 11:05:36 2014 +0200
@@ -28,7 +28,7 @@
  * @test JdpDefaultsTest
  * @summary Assert that we can read JDP packets from a multicast socket connection, on default IP and port.
  * @library /lib/testlibrary
- * @build ClientConnection JdpTestUtil JdpTestCase JdpOnTestCase DynamicLauncher
+ * @build jdk.testlibrary.* ClientConnection JdpTestUtil JdpTestCase JdpOnTestCase DynamicLauncher
  * @run main JdpDefaultsTest
  */
 
--- a/jdk/test/sun/management/jdp/JdpOffTest.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/management/jdp/JdpOffTest.java	Thu May 22 11:05:36 2014 +0200
@@ -29,7 +29,7 @@
  * @test JdpOffTest.java
  * @summary Assert that no JDP packets are sent to the default address and port.
  * @library /lib/testlibrary
- * @build ClientConnection JdpTestUtil JdpTestCase JdpOffTestCase DynamicLauncher
+ * @build jdk.testlibrary.* ClientConnection JdpTestUtil JdpTestCase JdpOffTestCase DynamicLauncher
  * @run main JdpOffTest
  */
 
--- a/jdk/test/sun/management/jdp/JdpSpecificAddressTest.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/management/jdp/JdpSpecificAddressTest.java	Thu May 22 11:05:36 2014 +0200
@@ -28,7 +28,7 @@
  * @test JdpSpecificAddressTest
  * @summary Assert that we can read JDP packets from a multicast socket connection, on specific IP and port.
  * @library /lib/testlibrary
- * @build ClientConnection JdpTestUtil JdpTestCase JdpOnTestCase DynamicLauncher
+ * @build jdk.testlibrary.* ClientConnection JdpTestUtil JdpTestCase JdpOnTestCase DynamicLauncher
  * @run main JdpSpecificAddressTest
  */
 
--- a/jdk/test/sun/management/jmxremote/bootstrap/LocalManagementTest.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/management/jmxremote/bootstrap/LocalManagementTest.java	Thu May 22 11:05:36 2014 +0200
@@ -42,9 +42,7 @@
  *          without connection or username/password details.
  *          TestManager will attempt a connection to the address obtained from
  *          both agent properties and jvmstat buffer.
- * @build jdk.testlibrary.ProcessTools
- * @build jdk.testlibrary.Utils
- * @build TestManager TestApplication
+ * @build jdk.testlibrary.* TestManager TestApplication
  * @run main/othervm/timeout=300 -XX:+UsePerfData LocalManagementTest
  */
 
--- a/jdk/test/sun/management/jmxremote/bootstrap/PasswordFilePermissionTest.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/management/jmxremote/bootstrap/PasswordFilePermissionTest.java	Thu May 22 11:05:36 2014 +0200
@@ -28,11 +28,7 @@
  * @library /lib/testlibrary
  * @bug 6557093
  * @summary Check SSL config file permission for out-of-the-box management
- * @build jdk.testlibrary.Utils
- * @build jdk.testlibrary.ProcessTools
- * @build jdk.testlibrary.OutputAnalyzer
- * @build AbstractFilePermissionTest
- * @build Dummy
+ * @build jdk.testlibrary.* AbstractFilePermissionTest Dummy
  * @run main/timeout=300 PasswordFilePermissionTest
  *
  * @author Taras Ledkov
--- a/jdk/test/sun/management/jmxremote/bootstrap/RmiBootstrapTest.sh	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/management/jmxremote/bootstrap/RmiBootstrapTest.sh	Thu May 22 11:05:36 2014 +0200
@@ -27,11 +27,7 @@
 # @summary Test RMI Bootstrap
 #
 # @library /lib/testlibrary
-# @library /lib/testlibrary
-# @build jdk.testlibrary.Utils
-# @build TestLogger
-# @build Utils
-# @build RmiBootstrapTest
+# @build jdk.testlibrary.* TestLogger Utils RmiBootstrapTest
 # @run shell/timeout=300  RmiBootstrapTest.sh
 
 # Define the Java class test name
--- a/jdk/test/sun/management/jmxremote/bootstrap/RmiRegistrySslTest.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/management/jmxremote/bootstrap/RmiRegistrySslTest.java	Thu May 22 11:05:36 2014 +0200
@@ -42,10 +42,7 @@
  * @library /lib/testlibrary
  * @bug 6228231
  * @summary Test that RMI registry uses SSL.
- * @build jdk.testlibrary.Utils
- * @build jdk.testlibrary.ProcessTools
- * @build jdk.testlibrary.OutputAnalyzer
- * @build RmiRegistrySslTestApp
+ * @build jdk.testlibrary.* RmiRegistrySslTestApp
  * @run main/timeout=300 RmiRegistrySslTest
  * @author Luis-Miguel Alventosa, Taras Ledkov
  */
--- a/jdk/test/sun/management/jmxremote/bootstrap/RmiSslBootstrapTest.sh	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/management/jmxremote/bootstrap/RmiSslBootstrapTest.sh	Thu May 22 11:05:36 2014 +0200
@@ -27,10 +27,7 @@
 # @summary Test RMI Bootstrap with SSL
 #
 # @library /lib/testlibrary
-# @build jdk.testlibrary.Utils
-# @build TestLogger
-# @build Utils
-# @build RmiBootstrapTest
+# @build jdk.testlibrary.* TestLogger Utils RmiBootstrapTest
 # @run shell/timeout=300  RmiSslBootstrapTest.sh
 
 # Define the Java class test name
--- a/jdk/test/sun/management/jmxremote/bootstrap/SSLConfigFilePermissionTest.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/management/jmxremote/bootstrap/SSLConfigFilePermissionTest.java	Thu May 22 11:05:36 2014 +0200
@@ -27,12 +27,7 @@
  * @test
  * @library /lib/testlibrary
  * @bug 6557093
- * @bug 6557093
- * @build jdk.testlibrary.Utils
- * @build jdk.testlibrary.ProcessTools
- * @build jdk.testlibrary.OutputAnalyzer
- * @build Dummy
- * @build AbstractFilePermissionTest
+ * @build jdk.testlibrary.* Dummy AbstractFilePermissionTest
  * @summary Check SSL config file permission for out-of-the-box management
  * @run main/timeout=300 SSLConfigFilePermissionTest
  *
--- a/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java	Thu May 22 11:05:36 2014 +0200
@@ -54,10 +54,7 @@
  * @test
  * @bug 7110104
  * @library /lib/testlibrary
- * @build jdk.testlibrary.ProcessTools
- * @build jdk.testlibrary.JDKToolLauncher
- * @build jdk.testlibrary.Utils
- * @build JMXStartStopTest JMXStartStopDoSomething
+ * @build jdk.testlibrary.* JMXStartStopTest JMXStartStopDoSomething
  * @run main/othervm JMXStartStopTest
  * @summary Makes sure that enabling/disabling the management agent through
  *          JCMD achieves the desired results
--- a/jdk/test/sun/tools/jstat/JStatInterval.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/tools/jstat/JStatInterval.java	Thu May 22 11:05:36 2014 +0200
@@ -28,8 +28,7 @@
  * @summary Test checks case when target application finishes execution and jstat didn't complete work.
             jstat is started with interval = 100 (jstat -compiler 100) and monitored application finishes
             after 500ms. This shouldn't cause crash or hang in target application or in jstat.
- * @build jdk.testlibrary.ProcessTools jdk.testlibrary.JDKToolLauncher
- * @build JStatInterval
+ * @build jdk.testlibrary.* JStatInterval
  * @run main JStatInterval
  */
 
--- a/jdk/test/sun/tools/jstatd/TestJstatdDefaults.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/tools/jstatd/TestJstatdDefaults.java	Thu May 22 11:05:36 2014 +0200
@@ -25,7 +25,7 @@
  * @test
  * @bug 4990825
  * @library /lib/testlibrary
- * @build JstatdTest JstatGCUtilParser
+ * @build jdk.testlibrary.* JstatdTest JstatGCUtilParser
  * @run main/timeout=60 TestJstatdDefaults
  */
 public class TestJstatdDefaults {
--- a/jdk/test/sun/tools/jstatd/TestJstatdExternalRegistry.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/tools/jstatd/TestJstatdExternalRegistry.java	Thu May 22 11:05:36 2014 +0200
@@ -25,7 +25,7 @@
  * @test
  * @bug 4990825 7092186
  * @library /lib/testlibrary
- * @build JstatdTest JstatGCUtilParser
+ * @build jdk.testlibrary.* JstatdTest JstatGCUtilParser
  * @run main/timeout=60 TestJstatdExternalRegistry
  */
 public class TestJstatdExternalRegistry {
--- a/jdk/test/sun/tools/jstatd/TestJstatdPort.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/tools/jstatd/TestJstatdPort.java	Thu May 22 11:05:36 2014 +0200
@@ -25,7 +25,7 @@
  * @test
  * @bug 4990825
  * @library /lib/testlibrary
- * @build JstatdTest JstatGCUtilParser
+ * @build jdk.testlibrary.* JstatdTest JstatGCUtilParser
  * @run main/timeout=60 TestJstatdPort
  */
 public class TestJstatdPort {
--- a/jdk/test/sun/tools/jstatd/TestJstatdPortAndServer.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/tools/jstatd/TestJstatdPortAndServer.java	Thu May 22 11:05:36 2014 +0200
@@ -25,7 +25,7 @@
  * @test
  * @bug 4990825
  * @library /lib/testlibrary
- * @build JstatdTest JstatGCUtilParser
+ * @build jdk.testlibrary.* JstatdTest JstatGCUtilParser
  * @run main/timeout=60 TestJstatdPortAndServer
  */
 public class TestJstatdPortAndServer {
--- a/jdk/test/sun/tools/jstatd/TestJstatdServer.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/tools/jstatd/TestJstatdServer.java	Thu May 22 11:05:36 2014 +0200
@@ -25,7 +25,7 @@
  * @test
  * @bug 4990825
  * @library /lib/testlibrary
- * @build JstatdTest JstatGCUtilParser
+ * @build jdk.testlibrary.* JstatdTest JstatGCUtilParser
  * @run main/timeout=60 TestJstatdServer
  */
 public class TestJstatdServer {
--- a/jdk/test/sun/tools/jstatd/TestJstatdUsage.java	Thu May 22 13:21:47 2014 +0900
+++ b/jdk/test/sun/tools/jstatd/TestJstatdUsage.java	Thu May 22 11:05:36 2014 +0200
@@ -28,7 +28,7 @@
  * @test
  * @bug 4990825
  * @library /lib/testlibrary
- * @build jdk.testlibrary.JDKToolLauncher jdk.testlibrary.OutputAnalyzer
+ * @build jdk.testlibrary.*
  * @run main TestJstatdUsage
  */
 public class TestJstatdUsage {