8140189: [TESTBUG] Get rid of "@library /../../test/lib" in jtreg tests

Use new external.lib.roots property in TEST.ROOT so /../../test/lib is not needed.

Reviewed-by: mseledtsov, sla, iklam
This commit is contained in:
Chris Plummer 2015-10-29 12:02:53 -07:00
parent cdf1de0422
commit 5b3684cf37
8 changed files with 11 additions and 7 deletions
jdk/test
TEST.ROOT
com/sun/management/HotSpotDiagnosticMXBean
java/util/Arrays
sun

@ -28,3 +28,7 @@ requires.properties=sun.arch.data.model
# 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 = ../../

@ -38,7 +38,7 @@ import com.sun.management.HotSpotDiagnosticMXBean;
* @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.*

@ -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

@ -42,7 +42,7 @@ import sun.jvmstat.monitor.VmIdentifier;
* @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

@ -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.*

@ -38,7 +38,7 @@ import jdk.testlibrary.ProcessTools;
* @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.*

@ -36,7 +36,7 @@ import jdk.testlibrary.Platform;
* @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.*

@ -37,7 +37,7 @@ import jdk.testlibrary.ProcessTools;
/*
* @test
* @summary Test deadlock detection
* @library /../../test/lib/share/classes
* @library /test/lib/share/classes
* @library /lib/testlibrary
* @modules java.management
* @build jdk.testlibrary.*