summaryrefslogtreecommitdiffstats
path: root/harmony-tests/src/test
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2015-03-16 09:35:11 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-03-16 09:35:13 +0000
commite6381dd5d03723f95b1f128228f38020857c16ac (patch)
tree91ff6d9553b7d8ba393fdcd4c5ad7ccb7a3bb3d1 /harmony-tests/src/test
parent4ea93798136559f00646a11678f4fb9313453d9f (diff)
parentf6e066e95859d3366a24da89736f487d980854ce (diff)
downloadlibcore-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.java2
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 =