diff options
author | Neil Fuller <nfuller@google.com> | 2015-03-16 09:35:11 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-03-16 09:35:13 +0000 |
commit | e6381dd5d03723f95b1f128228f38020857c16ac (patch) | |
tree | 91ff6d9553b7d8ba393fdcd4c5ad7ccb7a3bb3d1 /harmony-tests/src/test | |
parent | 4ea93798136559f00646a11678f4fb9313453d9f (diff) | |
parent | f6e066e95859d3366a24da89736f487d980854ce (diff) | |
download | libcore-e6381dd5d03723f95b1f128228f38020857c16ac.zip libcore-e6381dd5d03723f95b1f128228f38020857c16ac.tar.gz libcore-e6381dd5d03723f95b1f128228f38020857c16ac.tar.bz2 |
Merge "Fix for MulticastSocketTest for non-multicast interfaces"
Diffstat (limited to 'harmony-tests/src/test')
-rw-r--r-- | harmony-tests/src/test/java/org/apache/harmony/tests/java/net/MulticastSocketTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/MulticastSocketTest.java b/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/MulticastSocketTest.java index d531301..828dc99 100644 --- a/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/MulticastSocketTest.java +++ b/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/MulticastSocketTest.java @@ -706,7 +706,7 @@ public class MulticastSocketTest extends junit.framework.TestCase { Enumeration theInterfaces = NetworkInterface.getNetworkInterfaces(); while (theInterfaces.hasMoreElements()) { NetworkInterface thisInterface = (NetworkInterface) theInterfaces.nextElement(); - if (thisInterface.getInetAddresses().hasMoreElements() && thisInterface.isUp()) { + if (willWorkForMulticast(thisInterface)) { if ((!(thisInterface.getInetAddresses().nextElement()).isLoopbackAddress())) { MulticastSocket receivingSocket = createReceivingSocket(0); InetSocketAddress groupAddress = |