8145445: [TESTBUG] runtime/logging tests need to properly build and import libraries
authorrprotacio
Fri, 18 Dec 2015 14:30:13 -0500
changeset 35193 1e85994e9f56
parent 35192 76f4de26388d
child 35195 d142222675dd
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
hotspot/test/runtime/logging/ClassInitializationTest.java
hotspot/test/runtime/logging/DefaultMethodsTest.java
hotspot/test/runtime/logging/MonitorInflationTest.java
hotspot/test/runtime/logging/SafepointTest.java
hotspot/test/runtime/logging/VMOperationTest.java
--- 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 {