--- a/test/jdk/java/net/ipv6tests/TcpTest.java Thu May 09 17:49:28 2019 +0100
+++ b/test/jdk/java/net/ipv6tests/TcpTest.java Fri May 17 13:21:44 2019 +0100
@@ -25,7 +25,9 @@
* @test
* @bug 4868820
* @key intermittent
- * @summary IPv6 support for Windows XP and 2003 server
+ * @summary IPv6 support for Windows XP and 2003 server. This test requires
+ * binding to the wildcard address, and as such is susceptible
+ * of intermittent failures caused by port reuse policy.
* @library /test/lib
* @build jdk.test.lib.NetworkConfiguration
* jdk.test.lib.Platform
@@ -59,6 +61,10 @@
public static void main (String[] args) throws Exception {
checkDebug(args);
+ if (ia4addr == null) {
+ System.out.println ("No IPV4 addresses: exiting test");
+ return;
+ }
if (ia6addr == null) {
System.out.println ("No IPV6 addresses: exiting test");
return;
@@ -217,4 +223,3 @@
System.out.println ("Test4: OK");
}
}
-