8160650: Couple awt and swing tests have wrong require jtreg arguments
authormcherkas
Thu, 30 Jun 2016 22:27:28 +0300
changeset 39541 2d0b64d48027
parent 39540 c428ada91272
child 39542 1073ea3df2c7
8160650: Couple awt and swing tests have wrong require jtreg arguments Reviewed-by: serb
jdk/test/java/awt/TextArea/TextAreaCaretVisibilityTest/bug7129742.java
jdk/test/java/awt/WMSpecificTests/Metacity/FullscreenDialogModality.java
jdk/test/java/awt/WMSpecificTests/Mutter/MutterMaximizeTest.java
jdk/test/javax/swing/LookAndFeel/8145547/DemandGTK.java
--- a/jdk/test/java/awt/TextArea/TextAreaCaretVisibilityTest/bug7129742.java	Thu Jun 30 20:34:26 2016 +0300
+++ b/jdk/test/java/awt/TextArea/TextAreaCaretVisibilityTest/bug7129742.java	Thu Jun 30 22:27:28 2016 +0300
@@ -29,7 +29,7 @@
 /* @test
  * @bug 7129742
  * @summary Focus in non-editable TextArea is not shown on Linux.
- * @requires (os.family == "linux" | os.name == "solaris")
+ * @requires (os.family == "linux" | os.family == "solaris")
  * @modules java.desktop/sun.awt
  *          java.desktop/java.awt.peer
  *          java.desktop/sun.awt.X11
--- a/jdk/test/java/awt/WMSpecificTests/Metacity/FullscreenDialogModality.java	Thu Jun 30 20:34:26 2016 +0300
+++ b/jdk/test/java/awt/WMSpecificTests/Metacity/FullscreenDialogModality.java	Thu Jun 30 22:27:28 2016 +0300
@@ -25,7 +25,7 @@
  * @test
  * @bug 8012586
  * @summary verify that modal dialog will appeared above fullscreen window under Metacity WM.
- * @requires (os.name == "linux" | os.name == "solaris")
+ * @requires (os.family == "linux" | os.family == "solaris")
  * @modules java.desktop/sun.awt.X11
  * @library ../../regtesthelpers
  * @build Util
--- a/jdk/test/java/awt/WMSpecificTests/Mutter/MutterMaximizeTest.java	Thu Jun 30 20:34:26 2016 +0300
+++ b/jdk/test/java/awt/WMSpecificTests/Mutter/MutterMaximizeTest.java	Thu Jun 30 22:27:28 2016 +0300
@@ -28,7 +28,7 @@
   @bug      7043963
   @summary  Tests  that the screen location of windows is
             updated properly after a maximize.
-  @requires (os.name == "linux" | os.name == "solaris")
+  @requires (os.family == "linux" | os.family == "solaris")
   @modules java.desktop/sun.awt.X11
   @author   Denis Lila
   @library  ../../regtesthelpers
--- a/jdk/test/javax/swing/LookAndFeel/8145547/DemandGTK.java	Thu Jun 30 20:34:26 2016 +0300
+++ b/jdk/test/javax/swing/LookAndFeel/8145547/DemandGTK.java	Thu Jun 30 22:27:28 2016 +0300
@@ -27,7 +27,7 @@
             regardless of jdk.gtk.version flag values.
   @bug 8156121
   @key headful
-  @requires (os.name == "linux" | os.name == "solaris")
+  @requires (os.family == "linux" | os.family == "solaris")
   @run main/othervm -Djdk.gtk.version=2 DemandGTK
   @run main/othervm -Djdk.gtk.version=3 DemandGTK
 */