commit | 838dc8ab4b456d91e56b46f7deb76a8f97145563 | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Tue Feb 16 19:26:41 2016 +0000 |
committer | Narayan Kamath <narayan@google.com> | Wed Feb 17 11:35:50 2016 +0000 |
tree | a848ec32e1f854ac4b5663ed342b21457530ed42 | |
parent | 12c81704abe076d4f2021ec1efaf69a1c77b8370 [diff] |
InetAddress: Don't throw SocketException from isReachable. If something goes wrong, just state that the address is unreachable. This fixes InetAddressTest.testIsReachable. The test was failing in quite a convoluted manner - it was testing that isReachable did not throw on any of the network interfaces on the system. However, we did throw for interface = dummy0 because bind() returned EINVAL on the iface's (link local) address. Change-Id: Id7bdcf7318b6b4eaa92f9caaba38e86a580cc84b