changeset 13238:184913381cb8

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>
author kshefov
date Mon, 23 Nov 2015 14:44:41 +0300
parents cb31a1f4e388
children 8c09472c3de2
files test/java/awt/xembed/server/RunTestXEmbed.java
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/awt/xembed/server/RunTestXEmbed.java	Sun Nov 22 17:27:33 2015 +0300
+++ b/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;
         }