7146533: [TEST BUG] [macosx] skip java/awt/xembed/server/RunTestXEmbed.java for Mac OS X
authorkshefov
Mon, 23 Nov 2015 14:44:41 +0300
changeset 34413 bbed9966db6e
parent 34412 bed825be8cd8
child 34414 e496a8d8fc8a
7146533: [TEST BUG] [macosx] skip java/awt/xembed/server/RunTestXEmbed.java for Mac OS X Reviewed-by: alexsch, serb Contributed-by: Vikrant Agarwal <vikrant.v.agarwal@oracle.com>
jdk/test/java/awt/xembed/server/RunTestXEmbed.java
--- a/jdk/test/java/awt/xembed/server/RunTestXEmbed.java	Sun Nov 22 17:27:33 2015 +0300
+++ b/jdk/test/java/awt/xembed/server/RunTestXEmbed.java	Mon Nov 23 14:44:41 2015 +0300
@@ -23,9 +23,12 @@
 
 /**
  * @test
- * @bug 4931668
+ * @bug 4931668 7146533
  * @summary Tests XEmbed server/client functionality
  * @author Denis Mikhalkin: area=awt.xembed
+ * @requires (!(os.family=="mac") & !(os.family=="windows"))
+ * @library /lib/testlibrary
+ * @build jdk.testlibrary.Platform
  * @modules java.desktop/sun.awt
  * @compile JavaClient.java TesterClient.java TestXEmbedServer.java
  * @run main/timeout=6000 RunTestXEmbed
@@ -93,7 +96,7 @@
     }
 
     public static void main(String[] args) throws Throwable {
-        if (System.getProperty("os.name").toLowerCase().startsWith("win")) {
+        if (Platform.isWindows() || Platform.isOSX()) {
             return;
         }