6961029: java/net/BindException/Test.java should not use wildcard address
Reviewed-by: michaelm, alanb
This commit is contained in:
parent
fba8695a1c
commit
8dd995ca0d
@ -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
|
||||
|
||||
|
@ -180,7 +180,7 @@ public class Test {
|
||||
while (addrs.hasMoreElements()) {
|
||||
InetAddress ia = (InetAddress)addrs.nextElement();
|
||||
|
||||
if (ia.isLoopbackAddress()) {
|
||||
if (ia.isLoopbackAddress() || ia.isAnyLocalAddress()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user