changeset 7450:c15028b8a478

. Add BSD support.
author Greg Lewis <glewis@eyesbeyond.com>
date Tue, 15 Jul 2014 23:20:59 -0700
parents f9c904f94966
children 04c7030f6477
files test/lib/testlibrary/jdk/testlibrary/Platform.java
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/lib/testlibrary/jdk/testlibrary/Platform.java	Tue Jul 15 21:54:51 2014 -0700
+++ b/test/lib/testlibrary/jdk/testlibrary/Platform.java	Tue Jul 15 23:20:59 2014 -0700
@@ -53,8 +53,13 @@
         return isOs("linux");
     }
 
+    public static boolean isBSD() {
+        return isOs("bsd");
+    }
+
     private static boolean isOs(String osname) {
-        return osName.toLowerCase().startsWith(osname.toLowerCase());
+        return (osName.toLowerCase().startsWith(osname.toLowerCase()) ||
+                osName.toLowerCase().endsWith(osname.toLowerCase()));
     }
 
     public static String getOsName() {