changeset 8013:64f2a04d0c49

. Add BSD support. . Mark relevant looking tests that run on other Unix systems as runnable on BSD.
author Greg Lewis <glewis@eyesbeyond.com>
date Sun, 25 Jan 2015 08:34:16 -0800
parents 23e1acb4bd4d
children 79f707071596
files test/com/sun/corba/5036554/TestCorbaBug.sh test/java/awt/Focus/NPEInKFMOnButtonClickInDialogTest/NPEInKFMOnButtonClickInDialogTest.java test/java/lang/ClassLoader/Assert.sh test/sun/awt/dnd/8024061/bug8024061.java
diffstat 4 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/test/com/sun/corba/5036554/TestCorbaBug.sh	Sat Jan 24 12:39:24 2015 -0800
+++ b/test/com/sun/corba/5036554/TestCorbaBug.sh	Sun Jan 25 08:34:16 2015 -0800
@@ -48,7 +48,7 @@
 # set platform-dependent variables
 OS=`uname -s`
 case "$OS" in
-  SunOS | Linux | Darwin )
+  SunOS | Linux | Darwin | *BSD )
     PS=":"
     FS="/"
     ;;
--- a/test/java/awt/Focus/NPEInKFMOnButtonClickInDialogTest/NPEInKFMOnButtonClickInDialogTest.java	Sat Jan 24 12:39:24 2015 -0800
+++ b/test/java/awt/Focus/NPEInKFMOnButtonClickInDialogTest/NPEInKFMOnButtonClickInDialogTest.java	Sun Jan 25 08:34:16 2015 -0800
@@ -50,8 +50,8 @@
 
     public static void main(String[] args) {
         OSInfo.OSType osType = OSInfo.getOSType();
-        if ((osType != OSInfo.OSType.LINUX) && (osType != OSInfo.OSType.SOLARIS)) {
-            System.out.println("This test is only for Linux OS and Solaris OS.");
+        if ((osType != OSInfo.OSType.LINUX) && (osType != OSInfo.OSType.SOLARIS) && (osType != OSInfo.OSType.BSD)) {
+            System.out.println("This test is only for BSD, Linux, and Solaris.");
             return;
         }
 
--- a/test/java/lang/ClassLoader/Assert.sh	Sat Jan 24 12:39:24 2015 -0800
+++ b/test/java/lang/ClassLoader/Assert.sh	Sun Jan 25 08:34:16 2015 -0800
@@ -25,7 +25,7 @@
 
 OS=`uname -s`
 case "$OS" in
-  SunOS | Linux | Darwin )
+  SunOS | Linux | Darwin | *BSD )
     FS="/"
     CHMOD="${FS}bin${FS}chmod"
     ;;
--- a/test/sun/awt/dnd/8024061/bug8024061.java	Sat Jan 24 12:39:24 2015 -0800
+++ b/test/sun/awt/dnd/8024061/bug8024061.java	Sun Jan 25 08:34:16 2015 -0800
@@ -107,8 +107,8 @@
 
     public static void main(String[] args) throws AWTException, InvocationTargetException, InterruptedException {
         OSType type = OSInfo.getOSType();
-        if (type != OSType.LINUX && type != OSType.SOLARIS) {
-            System.out.println("This test is for Linux and Solaris only... " +
+        if (type != OSType.LINUX && type != OSType.SOLARIS && type != OSType.BSD) {
+            System.out.println("This test is for BSD, Linux and Solaris only... " +
                                "skipping!");
             return;
         }