8075039: (sctp) com/sun/nio/sctp/SctpMultiChannel/SendFailed.java fails on Solaris only

Reviewed-by: chegar
This commit is contained in:
Rob McKenna 2015-03-20 17:07:15 +00:00
parent 49dec12116
commit 89c87896e2

View File

@ -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);