8145445: [TESTBUG] runtime/logging tests need to properly build and import libraries
Summary: Adds the proper @build and import lines to the jtreg tests in the runtime/logging directory.
Reviewed-by: iklam, hseigel
--- a/hotspot/test/runtime/logging/ClassInitializationTest.java Fri Dec 18 13:38:49 2015 +0000
+++ b/hotspot/test/runtime/logging/ClassInitializationTest.java Fri Dec 18 14:30:13 2015 -0500
@@ -27,10 +27,13 @@
* @bug 8142976
* @library /testlibrary
* @compile BadMap50.jasm
+ * @build jdk.test.lib.OutputAnalyzer jdk.test.lib.Platform jdk.test.lib.ProcessTools
* @run driver ClassInitializationTest
*/
-import jdk.test.lib.*;
+import jdk.test.lib.OutputAnalyzer;
+import jdk.test.lib.Platform;
+import jdk.test.lib.ProcessTools;
public class ClassInitializationTest {
--- a/hotspot/test/runtime/logging/DefaultMethodsTest.java Fri Dec 18 13:38:49 2015 +0000
+++ b/hotspot/test/runtime/logging/DefaultMethodsTest.java Fri Dec 18 14:30:13 2015 -0500
@@ -28,10 +28,12 @@
* @library /testlibrary
* @modules java.base/sun.misc
* java.management
+ * @build jdk.test.lib.OutputAnalyzer jdk.test.lib.ProcessTools
* @run driver DefaultMethodsTest
*/
-import jdk.test.lib.*;
+import jdk.test.lib.OutputAnalyzer;
+import jdk.test.lib.ProcessTools;
public class DefaultMethodsTest {
public static void main(String[] args) throws Exception {
--- a/hotspot/test/runtime/logging/MonitorInflationTest.java Fri Dec 18 13:38:49 2015 +0000
+++ b/hotspot/test/runtime/logging/MonitorInflationTest.java Fri Dec 18 14:30:13 2015 -0500
@@ -29,11 +29,12 @@
* @ignore 8145587
* @modules java.base/sun.misc
* java.management
- * @build MonitorInflationTest
+ * @build jdk.test.lib.OutputAnalyzer jdk.test.lib.ProcessTools
* @run driver MonitorInflationTest
*/
-import jdk.test.lib.*;
+import jdk.test.lib.OutputAnalyzer;
+import jdk.test.lib.ProcessTools;
public class MonitorInflationTest {
static void analyzeOutputOn(ProcessBuilder pb) throws Exception {
--- a/hotspot/test/runtime/logging/SafepointTest.java Fri Dec 18 13:38:49 2015 +0000
+++ b/hotspot/test/runtime/logging/SafepointTest.java Fri Dec 18 14:30:13 2015 -0500
@@ -28,11 +28,13 @@
* @library /testlibrary
* @modules java.base/sun.misc
* java.management
+ * @build jdk.test.lib.OutputAnalyzer jdk.test.lib.ProcessTools
* @run driver SafepointTest
*/
-import jdk.test.lib.*;
import java.lang.ref.WeakReference;
+import jdk.test.lib.OutputAnalyzer;
+import jdk.test.lib.ProcessTools;
public class SafepointTest {
public static void main(String[] args) throws Exception {
--- a/hotspot/test/runtime/logging/VMOperationTest.java Fri Dec 18 13:38:49 2015 +0000
+++ b/hotspot/test/runtime/logging/VMOperationTest.java Fri Dec 18 14:30:13 2015 -0500
@@ -28,11 +28,13 @@
* @library /testlibrary
* @modules java.base/sun.misc
* java.management
+ * @build jdk.test.lib.OutputAnalyzer jdk.test.lib.ProcessTools
* @run driver VMOperationTest
*/
-import jdk.test.lib.*;
import java.lang.ref.WeakReference;
+import jdk.test.lib.OutputAnalyzer;
+import jdk.test.lib.ProcessTools;
public class VMOperationTest {
public static void main(String[] args) throws Exception {