diff options
author | Xin Li <delphij@google.com> | 2017-02-16 16:02:48 -0800 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2017-02-16 16:03:31 -0800 |
commit | 120f2701030bb14a173f2a12e347efbc25ef697c (patch) | |
tree | 9f94575c0933bbe3a2dd46735e660dd763966d1d | |
parent | e804e3897dd5e7eb170c3113dfdb1bce5e0cf92f (diff) | |
parent | 016c30e83ec00454f07c5def94682f820c54fb59 (diff) |
Merge mirror-aosp-marshmallow-cts-dev revision
016c30e83ec00454f07c5def94682f820c54fb59 into mnc-dev.
BUG: 35224217
Change-Id: Ie28d442bea8e3321b50c3202ee745070ab596b37
-rw-r--r-- | harmony-tests/src/test/java/org/apache/harmony/tests/java/net/InetAddressTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/InetAddressTest.java b/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/InetAddressTest.java index e5742d780a..4e41c2a1a8 100644 --- a/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/InetAddressTest.java +++ b/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/InetAddressTest.java @@ -343,8 +343,9 @@ public class InetAddressTest extends junit.framework.TestCase { } catch (IllegalArgumentException e) { // correct } - // tests nowhere - ia = Inet4Address.getByName("1.1.1.1"); + // tests nowhere using an address from the 'IPv4 Address Blocks Reserved for Documentation' + // as specified in https://tools.ietf.org/html/rfc5737 + ia = Inet4Address.getByName("192.0.2.1"); assertFalse(ia.isReachable(1000)); assertFalse(ia.isReachable(null, 0, 1000)); |