diff options
author | Neil Fuller <nfuller@google.com> | 2015-09-04 10:17:58 +0100 |
---|---|---|
committer | Neil Fuller <nfuller@google.com> | 2015-09-08 18:12:48 +0100 |
commit | a82ee5c37b22ec0dc71fef010982919caa8b9ecc (patch) | |
tree | 03297e72990034032b882569fc20dc5cab96e2e4 /harmony-tests/src/test/java | |
parent | 306981e8512720ae92b581602072372acb18e888 (diff) | |
download | libcore-a82ee5c37b22ec0dc71fef010982919caa8b9ecc.zip libcore-a82ee5c37b22ec0dc71fef010982919caa8b9ecc.tar.gz libcore-a82ee5c37b22ec0dc71fef010982919caa8b9ecc.tar.bz2 |
Avoid using point-to-point interfaces in multicast socket tests
Multicast on a point-to-point interface isn't really multicast.
Bug: 23279677
(cherry-picked from commit 67d7597da46910e65a089bcce0afa8e0c2bed668)
Change-Id: Ib102e9d04744d3e99b8828ac31d9548e72b703dd
Diffstat (limited to 'harmony-tests/src/test/java')
-rw-r--r-- | harmony-tests/src/test/java/org/apache/harmony/tests/java/net/MulticastSocketTest.java | 5 |
1 files changed, 4 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 b6a5861..264e004 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 @@ -922,7 +922,10 @@ public class MulticastSocketTest extends junit.framework.TestCase { return iface.isUp() // Typically loopback interfaces do not support multicast, but we rule them out // explicitly anyway. - && !iface.isLoopback() && iface.supportsMulticast() + && !iface.isLoopback() + // Point-to-point interfaces are known to cause problems. http://b/23279677 + && !iface.isPointToPoint() + && iface.supportsMulticast() && iface.getInetAddresses().hasMoreElements(); } |