8163256: jlink/plugins/ExcludeVMPluginTest.java failed with Selected VM server doesn't exist
authorsundar
Fri, 05 Aug 2016 18:16:45 +0530
changeset 40125 6a9dea571042
parent 40124 01f8745abd3c
child 40174 1c3f804fff32
child 40204 2781da09d28f
8163256: jlink/plugins/ExcludeVMPluginTest.java failed with Selected VM server doesn't exist Reviewed-by: jlaskey, alanb
jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/ExcludeVMPlugin.java
--- a/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/ExcludeVMPlugin.java	Fri Aug 05 09:42:05 2016 +0530
+++ b/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/ExcludeVMPlugin.java	Fri Aug 05 18:16:45 2016 +0530
@@ -263,6 +263,6 @@
     }
 
     private static boolean isMac(String osName) {
-        return osName.startsWith("Mac OS");
+        return osName.startsWith("Mac OS") || osName.startsWith("Darwin");
     }
 }