From 89c87896e2b9c089efbe9219af1f3e2e96a9b798 Mon Sep 17 00:00:00 2001 From: Rob McKenna Date: Fri, 20 Mar 2015 17:07:15 +0000 Subject: [PATCH] 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jdk/test/com/sun/nio/sctp/SctpMultiChannel/SendFailed.java b/jdk/test/com/sun/nio/sctp/SctpMultiChannel/SendFailed.java index 18f7a4c7815..be50b4efb2f 100644 --- a/jdk/test/com/sun/nio/sctp/SctpMultiChannel/SendFailed.java +++ b/jdk/test/com/sun/nio/sctp/SctpMultiChannel/SendFailed.java @@ -43,11 +43,16 @@ public class SendFailed { 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);