提交 940a1c7b 编写于 作者: J jbachorik

8043529: Serviceability tests using @library failing with java.lang.NoClassDefFoundError

Reviewed-by: sla, jbachorik
Contributed-by: NYekaterina Kantserova <yekaterina.kantserova@oracle.com>
上级 9538e430
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
* @summary Check that a bad handshake doesn't cause a debuggee to abort * @summary Check that a bad handshake doesn't cause a debuggee to abort
* @library /lib/testlibrary * @library /lib/testlibrary
* *
* @build VMConnection BadHandshakeTest Exit0 * @build jdk.testlibrary.* VMConnection BadHandshakeTest Exit0
* @run main BadHandshakeTest * @run main BadHandshakeTest
* *
*/ */
......
...@@ -27,8 +27,7 @@ ...@@ -27,8 +27,7 @@
* at the same time. * at the same time.
* @library /lib/testlibrary * @library /lib/testlibrary
* *
* @build jdk.testlibrary.ProcessTools jdk.testlibrary.JDKToolLauncher jdk.testlibrary.Utils * @build jdk.testlibrary.* VMConnection ExclusiveBind HelloWorld
* @build VMConnection ExclusiveBind HelloWorld
* @run main ExclusiveBind * @run main ExclusiveBind
*/ */
import java.net.ServerSocket; import java.net.ServerSocket;
......
...@@ -38,7 +38,7 @@ import jdk.testlibrary.ProcessThread; ...@@ -38,7 +38,7 @@ import jdk.testlibrary.ProcessThread;
* @bug 6173612 6273707 6277253 6335921 6348630 6342019 6381757 * @bug 6173612 6273707 6277253 6335921 6348630 6342019 6381757
* @summary Basic unit tests for the VM attach mechanism. * @summary Basic unit tests for the VM attach mechanism.
* @library /lib/testlibrary * @library /lib/testlibrary
* @run build Agent BadAgent RedefineAgent Application Shutdown RedefineDummy * @build jdk.testlibrary.* Agent BadAgent RedefineAgent Application Shutdown RedefineDummy
* @run main BasicTests * @run main BasicTests
* *
* This test will perform a number of basic attach tests. * This test will perform a number of basic attach tests.
......
...@@ -34,7 +34,7 @@ import jdk.testlibrary.ProcessThread; ...@@ -34,7 +34,7 @@ import jdk.testlibrary.ProcessThread;
* @bug 6173612 6273707 6277253 6335921 6348630 6342019 6381757 * @bug 6173612 6273707 6277253 6335921 6348630 6342019 6381757
* @summary Basic unit tests for the VM attach mechanism. * @summary Basic unit tests for the VM attach mechanism.
* @library /lib/testlibrary * @library /lib/testlibrary
* @run build Application Shutdown * @build jdk.testlibrary.* Application Shutdown
* @run main PermissionTest * @run main PermissionTest
* *
* Unit test for Attach API - * Unit test for Attach API -
......
...@@ -33,7 +33,7 @@ import com.sun.tools.attach.spi.AttachProvider; ...@@ -33,7 +33,7 @@ import com.sun.tools.attach.spi.AttachProvider;
* @bug 6173612 6273707 6277253 6335921 6348630 6342019 6381757 * @bug 6173612 6273707 6277253 6335921 6348630 6342019 6381757
* @summary Basic unit tests for the VM attach mechanism. * @summary Basic unit tests for the VM attach mechanism.
* @library /lib/testlibrary * @library /lib/testlibrary
* @run build SimpleProvider * @build jdk.testlibrary.* SimpleProvider
* @run main ProviderTest * @run main ProviderTest
* *
* The test will attach and detach to/from the running Application. * The test will attach and detach to/from the running Application.
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
* @summary BufferedInputStream calculates negative array size with large * @summary BufferedInputStream calculates negative array size with large
* streams and mark * streams and mark
* @library /lib/testlibrary * @library /lib/testlibrary
* @build jdk.testlibrary.*
* @run main/othervm LargeCopyWithMark * @run main/othervm LargeCopyWithMark
*/ */
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
* @summary Assert in java.lang.instrument agents during shutdown when classloading occurs after shutdown * @summary Assert in java.lang.instrument agents during shutdown when classloading occurs after shutdown
* @library /lib/testlibrary * @library /lib/testlibrary
* *
* @build DummyAgent DummyClass TestDaemonThreadLauncher TestDaemonThread * @build jdk.testlibrary.* DummyAgent DummyClass TestDaemonThreadLauncher TestDaemonThread
* @run shell ../MakeJAR3.sh DummyAgent * @run shell ../MakeJAR3.sh DummyAgent
* @run main TestDaemonThreadLauncher /timeout=240 * @run main TestDaemonThreadLauncher /timeout=240
* *
......
...@@ -30,7 +30,7 @@ import jdk.testlibrary.Utils; ...@@ -30,7 +30,7 @@ import jdk.testlibrary.Utils;
* @bug 6289149 * @bug 6289149
* @summary test when the agent's class is missing the premain() function. * @summary test when the agent's class is missing the premain() function.
* @library /lib/testlibrary * @library /lib/testlibrary
* @run build DummyMain * @build jdk.testlibrary.* DummyMain
* @run shell ../MakeJAR3.sh NoPremainAgent * @run shell ../MakeJAR3.sh NoPremainAgent
* @run main NoPremainAgentTest * @run main NoPremainAgentTest
*/ */
......
...@@ -30,7 +30,7 @@ import jdk.testlibrary.Utils; ...@@ -30,7 +30,7 @@ import jdk.testlibrary.Utils;
* @bug 5055293 * @bug 5055293
* @summary Test non ascii characters in the Premain-Class attribute. * @summary Test non ascii characters in the Premain-Class attribute.
* @library /lib/testlibrary * @library /lib/testlibrary
* @run build DummyMain * @build jdk.testlibrary.* DummyMain
* @run main PremainClassTest * @run main PremainClassTest
*/ */
public class PremainClassTest { public class PremainClassTest {
......
...@@ -30,7 +30,7 @@ import jdk.testlibrary.Utils; ...@@ -30,7 +30,7 @@ import jdk.testlibrary.Utils;
* @bug 6289149 * @bug 6289149
* @summary test when the agent's class has a zero arg premain() function. * @summary test when the agent's class has a zero arg premain() function.
* @library /lib/testlibrary * @library /lib/testlibrary
* @run build DummyMain * @build jdk.testlibrary.* DummyMain
* @run shell ../MakeJAR3.sh ZeroArgPremainAgent * @run shell ../MakeJAR3.sh ZeroArgPremainAgent
* @run main ZeroArgPremainAgentTest * @run main ZeroArgPremainAgentTest
*/ */
......
...@@ -37,6 +37,7 @@ import java.util.function.Supplier; ...@@ -37,6 +37,7 @@ import java.util.function.Supplier;
/* @test /* @test
* @library /lib/testlibrary/jsr292 /lib/testlibrary/ * @library /lib/testlibrary/jsr292 /lib/testlibrary/
* @compile CatchExceptionTest.java * @compile CatchExceptionTest.java
* @build jdk.testlibrary.*
* @run main/othervm -esa test.java.lang.invoke.MethodHandles.CatchExceptionTest * @run main/othervm -esa test.java.lang.invoke.MethodHandles.CatchExceptionTest
*/ */
public class CatchExceptionTest { public class CatchExceptionTest {
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
* @bug 4167874 * @bug 4167874
* @library ../../../../com/sun/net/httpserver * @library ../../../../com/sun/net/httpserver
* @library /lib/testlibrary * @library /lib/testlibrary
* @build FileServerHandler jdk.testlibrary.FileUtils * @build jdk.testlibrary.* FileServerHandler
* @run shell build.sh * @run shell build.sh
* @run main/othervm CloseTest * @run main/othervm CloseTest
* @summary URL-downloaded jar files can consume all available file descriptors * @summary URL-downloaded jar files can consume all available file descriptors
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* @test * @test
* @bug 6899919 * @bug 6899919
* @library /lib/testlibrary * @library /lib/testlibrary
* @build jdk.testlibrary.FileUtils * @build jdk.testlibrary.*
* @run shell build2.sh * @run shell build2.sh
* @run main/othervm GetResourceAsStream * @run main/othervm GetResourceAsStream
*/ */
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
# @library /lib/testlibrary # @library /lib/testlibrary
# @compile -XDignore.symbol.file=true SimpleNameService.java # @compile -XDignore.symbol.file=true SimpleNameService.java
# LookupTest.java SimpleNameServiceDescriptor.java # LookupTest.java SimpleNameServiceDescriptor.java
# @build jdk.testlibrary.*
# @run shell/timeout=50 lookup.sh # @run shell/timeout=50 lookup.sh
# #
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* @bug 8038491 * @bug 8038491
* @summary Crash in ZipFile.read() when ZipFileInputStream is shared between threads * @summary Crash in ZipFile.read() when ZipFileInputStream is shared between threads
* @library /lib/testlibrary * @library /lib/testlibrary
* @build jdk.testlibrary.FileUtils * @build jdk.testlibrary.*
* @run main MultiThreadedReadTest * @run main MultiThreadedReadTest
*/ */
......
...@@ -28,9 +28,8 @@ ...@@ -28,9 +28,8 @@
* monitors are started and stopped in a loop. * monitors are started and stopped in a loop.
* @author Luis-Miguel Alventosa * @author Luis-Miguel Alventosa
* @library /lib/testlibrary * @library /lib/testlibrary
* @run build jdk.testlibrary.Utils
* @run clean StartStopTest * @run clean StartStopTest
* @run build StartStopTest * @run build jdk.testlibrary.* StartStopTest
* @run main/othervm/timeout=300 StartStopTest 1 * @run main/othervm/timeout=300 StartStopTest 1
* @run main/othervm/timeout=300 StartStopTest 2 * @run main/othervm/timeout=300 StartStopTest 2
* @run main/othervm/timeout=300 StartStopTest 3 * @run main/othervm/timeout=300 StartStopTest 3
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* @test JdpDefaultsTest * @test JdpDefaultsTest
* @summary Assert that we can read JDP packets from a multicast socket connection, on default IP and port. * @summary Assert that we can read JDP packets from a multicast socket connection, on default IP and port.
* @library /lib/testlibrary * @library /lib/testlibrary
* @build ClientConnection JdpTestUtil JdpTestCase JdpOnTestCase DynamicLauncher * @build jdk.testlibrary.* ClientConnection JdpTestUtil JdpTestCase JdpOnTestCase DynamicLauncher
* @run main JdpDefaultsTest * @run main JdpDefaultsTest
*/ */
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
* @test JdpOffTest.java * @test JdpOffTest.java
* @summary Assert that no JDP packets are sent to the default address and port. * @summary Assert that no JDP packets are sent to the default address and port.
* @library /lib/testlibrary * @library /lib/testlibrary
* @build ClientConnection JdpTestUtil JdpTestCase JdpOffTestCase DynamicLauncher * @build jdk.testlibrary.* ClientConnection JdpTestUtil JdpTestCase JdpOffTestCase DynamicLauncher
* @run main JdpOffTest * @run main JdpOffTest
*/ */
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* @test JdpSpecificAddressTest * @test JdpSpecificAddressTest
* @summary Assert that we can read JDP packets from a multicast socket connection, on specific IP and port. * @summary Assert that we can read JDP packets from a multicast socket connection, on specific IP and port.
* @library /lib/testlibrary * @library /lib/testlibrary
* @build ClientConnection JdpTestUtil JdpTestCase JdpOnTestCase DynamicLauncher * @build jdk.testlibrary.* ClientConnection JdpTestUtil JdpTestCase JdpOnTestCase DynamicLauncher
* @run main JdpSpecificAddressTest * @run main JdpSpecificAddressTest
*/ */
......
...@@ -41,8 +41,7 @@ import jdk.testlibrary.ProcessTools; ...@@ -41,8 +41,7 @@ import jdk.testlibrary.ProcessTools;
* @test * @test
* @bug 6434402 8004926 * @bug 6434402 8004926
* @library /lib/testlibrary * @library /lib/testlibrary
* @build jdk.testlibrary.ProcessTools * @build jdk.testlibrary.* TestManager TestApplication CustomLauncherTest
* @build TestManager TestApplication CustomLauncherTest
* @run main/othervm CustomLauncherTest * @run main/othervm CustomLauncherTest
* @author Jaroslav Bachorik * @author Jaroslav Bachorik
*/ */
......
...@@ -42,8 +42,7 @@ import jdk.testlibrary.ProcessTools; ...@@ -42,8 +42,7 @@ import jdk.testlibrary.ProcessTools;
* without connection or username/password details. * without connection or username/password details.
* TestManager will attempt a connection to the address obtained from * TestManager will attempt a connection to the address obtained from
* both agent properties and jvmstat buffer. * both agent properties and jvmstat buffer.
* @build jdk.testlibrary.ProcessTools * @build jdk.testlibrary.* TestManager TestApplication
* @build TestManager TestApplication
* @run main/othervm/timeout=300 -XX:+UsePerfData LocalManagementTest * @run main/othervm/timeout=300 -XX:+UsePerfData LocalManagementTest
*/ */
......
...@@ -54,10 +54,7 @@ import jdk.testlibrary.JDKToolLauncher; ...@@ -54,10 +54,7 @@ import jdk.testlibrary.JDKToolLauncher;
* @test * @test
* @bug 7110104 * @bug 7110104
* @library /lib/testlibrary * @library /lib/testlibrary
* @build jdk.testlibrary.ProcessTools * @build jdk.testlibrary.* JMXStartStopTest JMXStartStopDoSomething
* @build jdk.testlibrary.JDKToolLauncher
* @build jdk.testlibrary.Utils
* @build JMXStartStopTest JMXStartStopDoSomething
* @run main/othervm JMXStartStopTest * @run main/othervm JMXStartStopTest
* @summary Makes sure that enabling/disabling the management agent through * @summary Makes sure that enabling/disabling the management agent through
* JCMD achieves the desired results * JCMD achieves the desired results
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
* @author Robert Field * @author Robert Field
* @library /lib/testlibrary * @library /lib/testlibrary
* @compile -XDignore.symbol.file ManyNewInstanceAnonTest.java * @compile -XDignore.symbol.file ManyNewInstanceAnonTest.java
* @build jdk.testlibrary.*
* @run main ClassFileInstaller ManyNewInstanceAnonTest * @run main ClassFileInstaller ManyNewInstanceAnonTest
* @run main/othervm -Xbootclasspath/a:. -Xverify:all ManyNewInstanceAnonTest * @run main/othervm -Xbootclasspath/a:. -Xverify:all ManyNewInstanceAnonTest
* @run main/othervm -Xbootclasspath/a:. -Xverify:all -Dsun.reflection.noInflation=true ManyNewInstanceAnonTest * @run main/othervm -Xbootclasspath/a:. -Xverify:all -Dsun.reflection.noInflation=true ManyNewInstanceAnonTest
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* @test * @test
* @bug 4990825 * @bug 4990825
* @library /lib/testlibrary * @library /lib/testlibrary
* @build JstatdTest JstatGCUtilParser * @build jdk.testlibrary.* JstatdTest JstatGCUtilParser
* @run main/timeout=60 TestJstatdDefaults * @run main/timeout=60 TestJstatdDefaults
*/ */
public class TestJstatdDefaults { public class TestJstatdDefaults {
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* @test * @test
* @bug 4990825 7092186 * @bug 4990825 7092186
* @library /lib/testlibrary * @library /lib/testlibrary
* @build JstatdTest JstatGCUtilParser * @build jdk.testlibrary.* JstatdTest JstatGCUtilParser
* @run main/timeout=60 TestJstatdExternalRegistry * @run main/timeout=60 TestJstatdExternalRegistry
*/ */
public class TestJstatdExternalRegistry { public class TestJstatdExternalRegistry {
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* @test * @test
* @bug 4990825 * @bug 4990825
* @library /lib/testlibrary * @library /lib/testlibrary
* @build JstatdTest JstatGCUtilParser * @build jdk.testlibrary.* JstatdTest JstatGCUtilParser
* @run main/timeout=60 TestJstatdPort * @run main/timeout=60 TestJstatdPort
*/ */
public class TestJstatdPort { public class TestJstatdPort {
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* @test * @test
* @bug 4990825 * @bug 4990825
* @library /lib/testlibrary * @library /lib/testlibrary
* @build JstatdTest JstatGCUtilParser * @build jdk.testlibrary.* JstatdTest JstatGCUtilParser
* @run main/timeout=60 TestJstatdPortAndServer * @run main/timeout=60 TestJstatdPortAndServer
*/ */
public class TestJstatdPortAndServer { public class TestJstatdPortAndServer {
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* @test * @test
* @bug 4990825 * @bug 4990825
* @library /lib/testlibrary * @library /lib/testlibrary
* @build JstatdTest JstatGCUtilParser * @build jdk.testlibrary.* JstatdTest JstatGCUtilParser
* @run main/timeout=60 TestJstatdServer * @run main/timeout=60 TestJstatdServer
*/ */
public class TestJstatdServer { public class TestJstatdServer {
......
...@@ -28,7 +28,7 @@ import jdk.testlibrary.OutputAnalyzer; ...@@ -28,7 +28,7 @@ import jdk.testlibrary.OutputAnalyzer;
* @test * @test
* @bug 4990825 * @bug 4990825
* @library /lib/testlibrary * @library /lib/testlibrary
* @build jdk.testlibrary.JDKToolLauncher jdk.testlibrary.OutputAnalyzer * @build jdk.testlibrary.*
* @run main TestJstatdUsage * @run main TestJstatdUsage
*/ */
public class TestJstatdUsage { public class TestJstatdUsage {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册