changeset 13068:8a1e0568b885

8140189: [TESTBUG] Get rid of "@library /../../test/lib" in jtreg tests Summary: Use new external.lib.roots property in TEST.ROOT so /../../test/lib is not needed. Reviewed-by: mseledtsov, sla, iklam
author cjplummer
date Thu, 29 Oct 2015 12:02:53 -0700
parents f7dffeae11a0
children ffb1b9f8265b
files test/TEST.ROOT test/com/sun/management/HotSpotDiagnosticMXBean/DumpHeap.java test/java/util/Arrays/TimSortStackSize2.java test/sun/jvmstat/monitor/MonitoredVm/TestPollingInterval.java test/sun/tools/jhsdb/BasicLauncherTest.java test/sun/tools/jmap/BasicJMapTest.java test/sun/tools/jmap/heapconfig/JMapHeapConfigTest.java test/sun/tools/jstack/DeadlockDetectionTest.java
diffstat 8 files changed, 11 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/test/TEST.ROOT	Wed Oct 28 19:07:12 2015 +0000
+++ b/test/TEST.ROOT	Thu Oct 29 12:02:53 2015 -0700
@@ -28,3 +28,7 @@
 
 # Tests using jtreg 4.1 b11 features
 requiredVersion=4.1 b11
+
+# Path to libraries in the topmost test directory. This is needed so @library
+# does not need ../../ notation to reach them
+external.lib.roots = ../../
--- a/test/com/sun/management/HotSpotDiagnosticMXBean/DumpHeap.java	Wed Oct 28 19:07:12 2015 +0000
+++ b/test/com/sun/management/HotSpotDiagnosticMXBean/DumpHeap.java	Thu Oct 29 12:02:53 2015 -0700
@@ -38,7 +38,7 @@
  * @bug 6455258
  * @summary Sanity test for com.sun.management.HotSpotDiagnosticMXBean.dumpHeap method
  * @library /lib/testlibrary
- * @library /../../test/lib/share/classes
+ * @library /test/lib/share/classes
  * @build jdk.testlibrary.*
  * @build jdk.test.lib.hprof.*
  * @build jdk.test.lib.hprof.module.*
--- a/test/java/util/Arrays/TimSortStackSize2.java	Wed Oct 28 19:07:12 2015 +0000
+++ b/test/java/util/Arrays/TimSortStackSize2.java	Thu Oct 29 12:02:53 2015 -0700
@@ -24,7 +24,7 @@
 /*
  * @test
  * @bug 8072909
- * @library /lib/testlibrary /../../test/lib
+ * @library /lib/testlibrary /test/lib
  * @build jdk.testlibrary.*
  * @build TimSortStackSize2
  * @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/test/sun/jvmstat/monitor/MonitoredVm/TestPollingInterval.java	Wed Oct 28 19:07:12 2015 +0000
+++ b/test/sun/jvmstat/monitor/MonitoredVm/TestPollingInterval.java	Thu Oct 29 12:02:53 2015 -0700
@@ -42,7 +42,7 @@
  * @summary setInterval() for local MonitoredHost and local MonitoredVm
  * @modules jdk.jvmstat/sun.jvmstat.monitor
  * @library /lib/testlibrary
- * @library /../../test/lib/share/classes
+ * @library /test/lib/share/classes
  * @build jdk.testlibrary.*
  * @build jdk.test.lib.apps.*
  * @run main TestPollingInterval
--- a/test/sun/tools/jhsdb/BasicLauncherTest.java	Wed Oct 28 19:07:12 2015 +0000
+++ b/test/sun/tools/jhsdb/BasicLauncherTest.java	Thu Oct 29 12:02:53 2015 -0700
@@ -24,7 +24,7 @@
 /*
  * @test
  * @summary Basic test for jhsdb launcher
- * @library /../../test/lib/share/classes
+ * @library /test/lib/share/classes
  * @library /lib/testlibrary
  * @build jdk.testlibrary.*
  * @build jdk.test.lib.apps.*
--- a/test/sun/tools/jmap/BasicJMapTest.java	Wed Oct 28 19:07:12 2015 +0000
+++ b/test/sun/tools/jmap/BasicJMapTest.java	Thu Oct 29 12:02:53 2015 -0700
@@ -38,7 +38,7 @@
  * @summary Unit test for jmap utility
  * @key intermittent
  * @library /lib/testlibrary
- * @library /../../test/lib/share/classes
+ * @library /test/lib/share/classes
  * @modules java.management
  * @build jdk.testlibrary.*
  * @build jdk.test.lib.hprof.*
--- a/test/sun/tools/jmap/heapconfig/JMapHeapConfigTest.java	Wed Oct 28 19:07:12 2015 +0000
+++ b/test/sun/tools/jmap/heapconfig/JMapHeapConfigTest.java	Thu Oct 29 12:02:53 2015 -0700
@@ -36,7 +36,7 @@
  * @test
  * @bug 8042397
  * @summary Unit test for jmap utility test heap configuration reader
- * @library /../../test/lib/share/classes
+ * @library /test/lib/share/classes
  * @library /lib/testlibrary
  * @modules java.management
  * @build jdk.testlibrary.*
--- a/test/sun/tools/jstack/DeadlockDetectionTest.java	Wed Oct 28 19:07:12 2015 +0000
+++ b/test/sun/tools/jstack/DeadlockDetectionTest.java	Thu Oct 29 12:02:53 2015 -0700
@@ -37,7 +37,7 @@
 /*
  * @test
  * @summary Test deadlock detection
- * @library /../../test/lib/share/classes
+ * @library /test/lib/share/classes
  * @library /lib/testlibrary
  * @modules java.management
  * @build jdk.testlibrary.*