From cea441e6179b873731b49faa9c247184218d5352 Mon Sep 17 00:00:00 2001 From: chegar Date: Mon, 28 Jun 2010 20:52:37 +0100 Subject: [PATCH] 6961029: java/net/BindException/Test.java should not use wildcard address Reviewed-by: michaelm, alanb --- test/ProblemList.txt | 3 --- test/java/net/BindException/Test.java | 2 +- test/java/net/ipv6tests/Tests.java | 3 ++- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/test/ProblemList.txt b/test/ProblemList.txt index a4d90b6da..748bcd868 100644 --- a/test/ProblemList.txt +++ b/test/ProblemList.txt @@ -379,9 +379,6 @@ sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.java # Interrupted or IO exception, maybe writing to non-unique named file? com/sun/net/httpserver/bugs/B6373555.java generic-all -# Fails on OpenSolaris, BindException unexpected -java/net/BindException/Test.java generic-all - # Fails on OpenSolaris, times out java/net/MulticastSocket/SetOutgoingIf.java generic-all diff --git a/test/java/net/BindException/Test.java b/test/java/net/BindException/Test.java index dbb9b5542..15871b764 100644 --- a/test/java/net/BindException/Test.java +++ b/test/java/net/BindException/Test.java @@ -180,7 +180,7 @@ public class Test { while (addrs.hasMoreElements()) { InetAddress ia = (InetAddress)addrs.nextElement(); - if (ia.isLoopbackAddress()) { + if (ia.isLoopbackAddress() || ia.isAnyLocalAddress()) { continue; } diff --git a/test/java/net/ipv6tests/Tests.java b/test/java/net/ipv6tests/Tests.java index 10f5cf197..cba85a945 100644 --- a/test/java/net/ipv6tests/Tests.java +++ b/test/java/net/ipv6tests/Tests.java @@ -248,7 +248,8 @@ public class Tests { } while (addrs.hasMoreElements()) { InetAddress addr = (InetAddress) addrs.nextElement(); - if (filter.isInstance (addr) && !addr.isLoopbackAddress()) { + if (filter.isInstance (addr) && !addr.isLoopbackAddress() + && !addr.isAnyLocalAddress()) { if (Arrays.equals (addr.getAddress(), fe80_loopback)) { continue; } -- GitLab