8075039: (sctp) com/sun/nio/sctp/SctpMultiChannel/SendFailed.java fails on Solaris only
Reviewed-by: chegar
--- 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);