8075039: (sctp) com/sun/nio/sctp/SctpMultiChannel/SendFailed.java fails on Solaris only
authorrobm
Fri, 20 Mar 2015 17:07:15 +0000
changeset 29592 66b56dc305f5
parent 29591 51244d1ddffc
child 29593 935cd82c2868
8075039: (sctp) com/sun/nio/sctp/SctpMultiChannel/SendFailed.java fails on Solaris only Reviewed-by: chegar
jdk/test/com/sun/nio/sctp/SctpMultiChannel/SendFailed.java
--- a/jdk/test/com/sun/nio/sctp/SctpMultiChannel/SendFailed.java	Fri Mar 20 10:02:44 2015 -0700
+++ b/jdk/test/com/sun/nio/sctp/SctpMultiChannel/SendFailed.java	Fri Mar 20 17:07:15 2015 +0000
@@ -43,11 +43,16 @@
 
     void test(String[] args) throws IOException {
         SocketAddress address = null;
+        String os = System.getProperty("os.name").toLowerCase();
 
         if (!Util.isSCTPSupported()) {
             out.println("SCTP protocol is not supported");
             out.println("Test cannot be run");
             return;
+        } else if (os.startsWith("sunos")) {
+            out.println("Test not supported on Solaris");
+            out.println("Test cannot be run");
+            return;
         }
 
         System.out.println("remote address: " + remoteAddress);