changeset 52888:157c1130b46e

8214431: tests failed because can't find jdk.testlibrary.* in test directory or libraries Reviewed-by: chegar, ctornqvi, dholmes
author mli
date Thu, 29 Nov 2018 07:40:45 +0800
parents 345266000aba
children 41edb8be98b3
files test/jdk/com/sun/jdi/ProcessAttachTest.java test/jdk/com/sun/tools/attach/BasicTests.java test/jdk/com/sun/tools/attach/PermissionTest.java test/jdk/com/sun/tools/attach/ProviderTest.java test/jdk/com/sun/tools/attach/TempDirTest.java test/jdk/java/lang/Thread/ThreadStateTest.java test/jdk/java/lang/management/MemoryMXBean/CollectionUsageThreshold.java test/jdk/java/lang/management/MemoryMXBean/ResetPeakMemoryUsage.java test/jdk/java/lang/management/ThreadMXBean/ThreadMXBeanStateTest.java test/jdk/sun/management/jmxremote/bootstrap/PasswordFilePermissionTest.java test/jdk/sun/management/jmxremote/bootstrap/SSLConfigFilePermissionTest.java test/jdk/sun/management/jmxremote/startstop/JMXStatusPerfCountersTest.java test/jdk/sun/management/jmxremote/startstop/JMXStatusTest.java
diffstat 13 files changed, 15 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/com/sun/jdi/ProcessAttachTest.java	Wed Nov 28 15:25:14 2018 -0800
+++ b/test/jdk/com/sun/jdi/ProcessAttachTest.java	Thu Nov 29 07:40:45 2018 +0800
@@ -38,11 +38,10 @@
  * @bug 4527279
  * @summary Unit test for ProcessAttachingConnector
  *
- * @library /lib/testlibrary
  * @library /test/lib
  * @modules java.management
  *          jdk.jdi
- * @build jdk.testlibrary.* ProcessAttachTest
+ * @build ProcessAttachTest
  * @run driver ProcessAttachTest
  */
 
--- a/test/jdk/com/sun/tools/attach/BasicTests.java	Wed Nov 28 15:25:14 2018 -0800
+++ b/test/jdk/com/sun/tools/attach/BasicTests.java	Thu Nov 29 07:40:45 2018 +0800
@@ -44,13 +44,12 @@
  * @summary Basic unit tests for the VM attach mechanism. This test will perform
  * a number of basic attach tests.
  *
- * @library /lib/testlibrary
  * @library /test/lib
  * @modules java.instrument
  *          jdk.attach
  *          jdk.jartool/sun.tools.jar
  *
- * @run build jdk.testlibrary.* Agent BadAgent RedefineAgent Application RedefineDummy RunnerUtil
+ * @run build Agent BadAgent RedefineAgent Application RedefineDummy RunnerUtil
  * @run main BasicTests
  */
 public class BasicTests {
--- a/test/jdk/com/sun/tools/attach/PermissionTest.java	Wed Nov 28 15:25:14 2018 -0800
+++ b/test/jdk/com/sun/tools/attach/PermissionTest.java	Thu Nov 29 07:40:45 2018 +0800
@@ -34,12 +34,11 @@
  * @summary Basic unit tests for the VM attach mechanism. Unit test for Attach
  * API - this checks that a SecurityException is thrown as expected.
  *
- * @library /lib/testlibrary
  * @library /test/lib
  * @modules jdk.attach
  *          jdk.jartool/sun.tools.jar
  *
- * @run build jdk.testlibrary.* Application
+ * @run build Application
  * @run main PermissionTest
  */
 public class PermissionTest {
--- a/test/jdk/com/sun/tools/attach/ProviderTest.java	Wed Nov 28 15:25:14 2018 -0800
+++ b/test/jdk/com/sun/tools/attach/ProviderTest.java	Thu Nov 29 07:40:45 2018 +0800
@@ -33,12 +33,11 @@
  * @summary Basic unit tests for the VM attach mechanism. The test will attach
  * and detach to/from the running Application.
  *
- * @library /lib/testlibrary
  * @library /test/lib
  * @modules jdk.attach
  *          jdk.jartool/sun.tools.jar
  *
- * @run build jdk.testlibrary.* SimpleProvider
+ * @run build SimpleProvider
  * @run main ProviderTest
  */
 public class ProviderTest {
--- a/test/jdk/com/sun/tools/attach/TempDirTest.java	Wed Nov 28 15:25:14 2018 -0800
+++ b/test/jdk/com/sun/tools/attach/TempDirTest.java	Thu Nov 29 07:40:45 2018 +0800
@@ -38,12 +38,11 @@
  * @bug 8033104
  * @summary Test to make sure attach and jvmstat works correctly when java.io.tmpdir is set
  *
- * @library /lib/testlibrary
  * @library /test/lib
  * @modules jdk.attach
  *          jdk.jartool/sun.tools.jar
  *
- * @run build jdk.testlibrary.* Application RunnerUtil
+ * @run build Application RunnerUtil
  * @run main/timeout=200 TempDirTest
  */
 
--- a/test/jdk/java/lang/Thread/ThreadStateTest.java	Wed Nov 28 15:25:14 2018 -0800
+++ b/test/jdk/java/lang/Thread/ThreadStateTest.java	Thu Nov 29 07:40:45 2018 +0800
@@ -30,9 +30,7 @@
  *          Thread.getState().
  *
  * @author  Mandy Chung
- * @library /lib/testlibrary
  * @library /test/lib
- * @build jdk.testlibrary.*
  * @build jdk.test.lib.LockFreeLogger
  * @build ThreadStateTest ThreadStateController
  * @run main/othervm -Xmixed ThreadStateTest
--- a/test/jdk/java/lang/management/MemoryMXBean/CollectionUsageThreshold.java	Wed Nov 28 15:25:14 2018 -0800
+++ b/test/jdk/java/lang/management/MemoryMXBean/CollectionUsageThreshold.java	Thu Nov 29 07:40:45 2018 +0800
@@ -30,9 +30,9 @@
  *
  * @author  Mandy Chung
  *
- * @library /lib/testlibrary/ /test/lib
+ * @library /test/lib
  * @modules jdk.management
- * @build jdk.testlibrary.* CollectionUsageThreshold MemoryUtil RunUtil
+ * @build CollectionUsageThreshold MemoryUtil RunUtil
  * @requires vm.opt.ExplicitGCInvokesConcurrent == "false" | vm.opt.ExplicitGCInvokesConcurrent == "null"
  * @build sun.hotspot.WhiteBox
  * @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
--- a/test/jdk/java/lang/management/MemoryMXBean/ResetPeakMemoryUsage.java	Wed Nov 28 15:25:14 2018 -0800
+++ b/test/jdk/java/lang/management/MemoryMXBean/ResetPeakMemoryUsage.java	Thu Nov 29 07:40:45 2018 +0800
@@ -34,10 +34,10 @@
  *
  * @requires vm.opt.ExplicitGCInvokesConcurrent != "true"
  * @requires vm.opt.DisableExplicitGC != "true"
- * @library /lib/testlibrary/ /test/lib
+ * @library /test/lib
  * @modules jdk.management
  *
- * @build jdk.testlibrary.* ResetPeakMemoryUsage MemoryUtil RunUtil
+ * @build ResetPeakMemoryUsage MemoryUtil RunUtil
  * @build sun.hotspot.WhiteBox
  * @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
  * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. ResetPeakMemoryUsage
--- a/test/jdk/java/lang/management/ThreadMXBean/ThreadMXBeanStateTest.java	Wed Nov 28 15:25:14 2018 -0800
+++ b/test/jdk/java/lang/management/ThreadMXBean/ThreadMXBeanStateTest.java	Thu Nov 29 07:40:45 2018 +0800
@@ -30,10 +30,8 @@
  * @author  Mandy Chung
  *
  * @library ../../Thread
- * @library /lib/testlibrary
  * @library /test/lib
  *
- * @build jdk.testlibrary.*
  * @build ThreadMXBeanStateTest ThreadStateController
  * @run main ThreadMXBeanStateTest
  */
--- a/test/jdk/sun/management/jmxremote/bootstrap/PasswordFilePermissionTest.java	Wed Nov 28 15:25:14 2018 -0800
+++ b/test/jdk/sun/management/jmxremote/bootstrap/PasswordFilePermissionTest.java	Thu Nov 29 07:40:45 2018 +0800
@@ -29,9 +29,9 @@
  * @summary Check SSL config file permission for out-of-the-box management
  * @author Taras Ledkov
  *
- * @library /lib/testlibrary /test/lib
+ * @library /test/lib
  *
- * @build jdk.testlibrary.* jdk.test.lib.Platform AbstractFilePermissionTest Dummy
+ * @build jdk.test.lib.Platform AbstractFilePermissionTest Dummy
  * @run main/timeout=300 PasswordFilePermissionTest
  */
 public class PasswordFilePermissionTest extends AbstractFilePermissionTest {
--- a/test/jdk/sun/management/jmxremote/bootstrap/SSLConfigFilePermissionTest.java	Wed Nov 28 15:25:14 2018 -0800
+++ b/test/jdk/sun/management/jmxremote/bootstrap/SSLConfigFilePermissionTest.java	Thu Nov 29 07:40:45 2018 +0800
@@ -29,9 +29,9 @@
  * @summary Check SSL config file permission for out-of-the-box management
  * @author Taras Ledkov
  *
- * @library /lib/testlibrary /test/lib
+ * @library /test/lib
  *
- * @build jdk.testlibrary.* jdk.test.lib.Platform Dummy AbstractFilePermissionTest
+ * @build jdk.test.lib.Platform Dummy AbstractFilePermissionTest
  * @run main/timeout=300 SSLConfigFilePermissionTest
  */
 public class SSLConfigFilePermissionTest extends AbstractFilePermissionTest {
--- a/test/jdk/sun/management/jmxremote/startstop/JMXStatusPerfCountersTest.java	Wed Nov 28 15:25:14 2018 -0800
+++ b/test/jdk/sun/management/jmxremote/startstop/JMXStatusPerfCountersTest.java	Thu Nov 29 07:40:45 2018 +0800
@@ -42,10 +42,9 @@
  * @summary Makes sure that the current management agent status is reflected
  *          in the related performance counters.
  *
- * @library /lib/testlibrary
  * @library /test/lib
  *
- * @build jdk.testlibrary.* PortAllocator TestApp ManagementAgentJcmd
+ * @build PortAllocator TestApp ManagementAgentJcmd
  * @run testng/othervm -XX:+UsePerfData JMXStatusPerfCountersTest
  */
 public class JMXStatusPerfCountersTest {
--- a/test/jdk/sun/management/jmxremote/startstop/JMXStatusTest.java	Wed Nov 28 15:25:14 2018 -0800
+++ b/test/jdk/sun/management/jmxremote/startstop/JMXStatusTest.java	Thu Nov 29 07:40:45 2018 +0800
@@ -38,10 +38,9 @@
  *          Management agent may be disabled, started (only local connections) and started.
  *          The test asserts that the expected text is being printed.
  *
- * @library /lib/testlibrary
  * @library /test/lib
  *
- * @build jdk.testlibrary.* PortAllocator TestApp ManagementAgentJcmd
+ * @build PortAllocator TestApp ManagementAgentJcmd
  *        JMXStatusTest JMXStatus1Test JMXStatus2Test
  * @run testng/othervm -XX:+UsePerfData JMXStatus1Test
  * @run testng/othervm -XX:+UsePerfData JMXStatus2Test