On 21/08/2019 07:55, Nick Gasson wrote:
Hi,

Bug: https://bugs.openjdk.java.net/browse/JDK-8229912
Webrev: http://cr.openjdk.java.net/~ngasson/8229912/webrev.0/

This test should be skipped if IPv6 is disabled on the host, and it
already has a shouldRun field to support this. But at the moment the
the setUp() method will throw inside HttpServer.create() when it's
passed an IPv6 address on a system with IPv6 disabled. Fix is to check
shouldRun in setUp and return immediately if it's false.
net-dev is the mailing list for the networking tests. There is a lot of recent activity there to allow the tests work in IPv6-only environments so fixing them to work in IPv4-only environments would be good too.

For this test then I assume that the @BeforeClass setup method can throw SkipException and thus eliminate the need for each test to check "shouldRun" (shouldRun could go away).

-Alan

Reply via email to