RFR: 8267353: java/net/SctpSanity.java fails due to Protocol not supported
dfuchs at openjdk.java.net
Wed May 26 14:28:16 UTC 2021
On Wed, 26 May 2021 03:54:14 GMT, Jie Fu <jiefu at openjdk.org> wrote:
> Hi all,
> java/net/SctpSanity.java fails on some of our test machines due to Protocol not supported.
> The reason is that the test fails to detect all the cases when a machine doesn't support SCTP.
> The fix just follows what are done in  to detect unsupported paltforms at the beginning.
> Best regards,
>  https://github.com/openjdk/jdk/blob/master/test/jdk/com/sun/nio/sctp/SctpMultiChannel/Util.java#L59
>  https://github.com/openjdk/jdk/blob/master/test/jdk/com/sun/nio/sctp/SctpServerChannel/Util.java#L59
>  https://github.com/openjdk/jdk/blob/master/test/jdk/com/sun/nio/sctp/SctpChannel/Util.java#L59
I am intrigued - which exception do you get on the machine where SCTP is not supported?
SctpChannel.open() is supposed to throw `UnsupportedOperationException` - If the SCTP protocol is not supported, and the test catches `UnsupportedOperationException`.
Note: I don't have objection to the proposed fix.
More information about the net-dev