# HG changeset patch # User ykantser # Date 1401976549 -7200 # Node ID 09f19d3de485ec84386b93ac392aff2ced4ca70b # Parent 9d8f8852abcc87d42266e7c47a41d6d7250d9349 8043915: Tests get ClassNotFoundException: com.oracle.java.testlibrary.StreamPumper Reviewed-by: sla, allwin diff -r 9d8f8852abcc -r 09f19d3de485 test/serviceability/ParserTest.java --- a/test/serviceability/ParserTest.java Fri Jun 06 09:53:30 2014 -0700 +++ b/test/serviceability/ParserTest.java Thu Jun 05 15:55:49 2014 +0200 @@ -22,10 +22,10 @@ */ /* - * @test ParserTest + * @test * @summary Test that the diagnostic command arguemnt parser works * @library /testlibrary /testlibrary/whitebox - * @build ParserTest + * @build ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.parser.* * @run main ClassFileInstaller sun.hotspot.WhiteBox * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI ParserTest */ diff -r 9d8f8852abcc -r 09f19d3de485 test/serviceability/attach/AttachWithStalePidFile.java --- a/test/serviceability/attach/AttachWithStalePidFile.java Fri Jun 06 09:53:30 2014 -0700 +++ b/test/serviceability/attach/AttachWithStalePidFile.java Thu Jun 05 15:55:49 2014 +0200 @@ -27,7 +27,7 @@ * @key regression * @summary Regression test for attach issue where stale pid files in /tmp lead to connection issues * @library /testlibrary - * @compile AttachWithStalePidFileTarget.java + * @build com.oracle.java.testlibrary.* AttachWithStalePidFileTarget * @run main AttachWithStalePidFile */ diff -r 9d8f8852abcc -r 09f19d3de485 test/serviceability/jvmti/GetObjectSizeOverflow.java --- a/test/serviceability/jvmti/GetObjectSizeOverflow.java Fri Jun 06 09:53:30 2014 -0700 +++ b/test/serviceability/jvmti/GetObjectSizeOverflow.java Thu Jun 05 15:55:49 2014 +0200 @@ -29,7 +29,7 @@ * @test * @bug 8027230 * @library /testlibrary - * @build GetObjectSizeOverflowAgent + * @build ClassFileInstaller com.oracle.java.testlibrary.* GetObjectSizeOverflowAgent * @run main ClassFileInstaller GetObjectSizeOverflowAgent * @run main GetObjectSizeOverflow */ diff -r 9d8f8852abcc -r 09f19d3de485 test/serviceability/jvmti/TestRedefineWithUnresolvedClass.java --- a/test/serviceability/jvmti/TestRedefineWithUnresolvedClass.java Fri Jun 06 09:53:30 2014 -0700 +++ b/test/serviceability/jvmti/TestRedefineWithUnresolvedClass.java Thu Jun 05 15:55:49 2014 +0200 @@ -26,7 +26,7 @@ * @summary Redefine a class with an UnresolvedClass reference in the constant pool. * @bug 8035150 * @library /testlibrary - * @build UnresolvedClassAgent com.oracle.java.testlibrary.ProcessTools com.oracle.java.testlibrary.OutputAnalyzer + * @build com.oracle.java.testlibrary.* UnresolvedClassAgent * @run main TestRedefineWithUnresolvedClass */ diff -r 9d8f8852abcc -r 09f19d3de485 test/serviceability/sa/jmap-hashcode/Test8028623.java --- a/test/serviceability/sa/jmap-hashcode/Test8028623.java Fri Jun 06 09:53:30 2014 -0700 +++ b/test/serviceability/sa/jmap-hashcode/Test8028623.java Thu Jun 05 15:55:49 2014 +0200 @@ -26,6 +26,7 @@ * @bug 8028623 * @summary Test hashing of extended characters in Serviceability Agent. * @library /testlibrary + * @build com.oracle.java.testlibrary.* * @compile -encoding utf8 Test8028623.java * @run main Test8028623 */ diff -r 9d8f8852abcc -r 09f19d3de485 test/serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java --- a/test/serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java Fri Jun 06 09:53:30 2014 -0700 +++ b/test/serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java Thu Jun 05 15:55:49 2014 +0200 @@ -44,7 +44,7 @@ * @key regression * @summary Regression test for hprof export issue due to large heaps (>2G) * @library /testlibrary - * @compile JMapHProfLargeHeapProc.java + * @build com.oracle.java.testlibrary.* JMapHProfLargeHeapProc * @run main JMapHProfLargeHeapTest */ diff -r 9d8f8852abcc -r 09f19d3de485 test/testlibrary/ctw/test/ClassesDirTest.java --- a/test/testlibrary/ctw/test/ClassesDirTest.java Fri Jun 06 09:53:30 2014 -0700 +++ b/test/testlibrary/ctw/test/ClassesDirTest.java Thu Jun 05 15:55:49 2014 +0200 @@ -22,10 +22,10 @@ */ /* - * @test ClassesDirTest + * @test * @bug 8012447 * @library /testlibrary /testlibrary/whitebox /testlibrary/ctw/src - * @build sun.hotspot.tools.ctw.CompileTheWorld sun.hotspot.WhiteBox ClassesDirTest Foo Bar + * @build ClassFileInstaller sun.hotspot.tools.ctw.CompileTheWorld sun.hotspot.WhiteBox Foo Bar * @run main ClassFileInstaller sun.hotspot.WhiteBox Foo Bar * @run main ClassesDirTest prepare * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Dsun.hotspot.tools.ctw.logfile=ctw.log sun.hotspot.tools.ctw.CompileTheWorld classes diff -r 9d8f8852abcc -r 09f19d3de485 test/testlibrary/ctw/test/ClassesListTest.java --- a/test/testlibrary/ctw/test/ClassesListTest.java Fri Jun 06 09:53:30 2014 -0700 +++ b/test/testlibrary/ctw/test/ClassesListTest.java Thu Jun 05 15:55:49 2014 +0200 @@ -22,10 +22,10 @@ */ /* - * @test ClassesListTest + * @test * @bug 8012447 * @library /testlibrary /testlibrary/whitebox /testlibrary/ctw/src - * @build sun.hotspot.tools.ctw.CompileTheWorld sun.hotspot.WhiteBox ClassesListTest Foo Bar + * @build ClassFileInstaller sun.hotspot.tools.ctw.CompileTheWorld sun.hotspot.WhiteBox Foo Bar * @run main ClassFileInstaller sun.hotspot.WhiteBox Foo Bar * @run main ClassesListTest prepare * @run main/othervm/timeout=600 -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Dsun.hotspot.tools.ctw.logfile=ctw.log sun.hotspot.tools.ctw.CompileTheWorld classes.lst diff -r 9d8f8852abcc -r 09f19d3de485 test/testlibrary/ctw/test/JarDirTest.java --- a/test/testlibrary/ctw/test/JarDirTest.java Fri Jun 06 09:53:30 2014 -0700 +++ b/test/testlibrary/ctw/test/JarDirTest.java Thu Jun 05 15:55:49 2014 +0200 @@ -22,10 +22,10 @@ */ /* - * @test JarDirTest + * @test * @bug 8012447 * @library /testlibrary /testlibrary/whitebox /testlibrary/ctw/src - * @build sun.hotspot.tools.ctw.CompileTheWorld sun.hotspot.WhiteBox JarDirTest Foo Bar + * @build ClassFileInstaller com.oracle.java.testlibrary.* sun.hotspot.tools.ctw.CompileTheWorld sun.hotspot.WhiteBox Foo Bar * @run main ClassFileInstaller sun.hotspot.WhiteBox Foo Bar * @run main JarDirTest prepare * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Dsun.hotspot.tools.ctw.logfile=ctw.log sun.hotspot.tools.ctw.CompileTheWorld jars/* diff -r 9d8f8852abcc -r 09f19d3de485 test/testlibrary/ctw/test/JarsTest.java --- a/test/testlibrary/ctw/test/JarsTest.java Fri Jun 06 09:53:30 2014 -0700 +++ b/test/testlibrary/ctw/test/JarsTest.java Thu Jun 05 15:55:49 2014 +0200 @@ -22,10 +22,10 @@ */ /* - * @test JarsTest + * @test * @bug 8012447 * @library /testlibrary /testlibrary/whitebox /testlibrary/ctw/src - * @build sun.hotspot.tools.ctw.CompileTheWorld sun.hotspot.WhiteBox JarsTest Foo Bar + * @build ClassFileInstaller com.oracle.java.testlibrary.* sun.hotspot.tools.ctw.CompileTheWorld sun.hotspot.WhiteBox Foo Bar * @run main ClassFileInstaller sun.hotspot.WhiteBox Foo Bar * @run main JarsTest prepare * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Dsun.hotspot.tools.ctw.logfile=ctw.log sun.hotspot.tools.ctw.CompileTheWorld foo.jar bar.jar