summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2017-01-25 16:33:52 +0000
committerNeil Fuller <nfuller@google.com>2017-01-27 11:56:05 +0000
commit8b47464fc0ac990046f917318ff68b2835242bc7 (patch)
treeb3e88004055875fbaf64f6bb0a3f43e584660ae0 /annotations/generate_annotated_java_files.py
parent8ba87b0c28928697f9187c38b7583b3f586f39ca (diff)
Test fix: Handle missing dummy0 network interface
The test should pass/skip if the dummy0 network interface is not present. It's not present on Fugu and the test was failing because NetworkInterface.getByName("dummy0") returns null, as per docs. This change modifies the test_isReachable_neverThrows test to skip the reachability check when the dummy0 interface cannot be found. An error looking up dummy0 will now be reported as a failure instead of treating it as an automatic pass. This has been tested on an angler (with dummy0) and a fugu (without). Test: Ran libcore/java/net/InetAddressTest.java Bug: 34683975 Change-Id: I5cedeb7354ac066b1358bd6071dbb013a6f5fa3c (cherry picked from commit ca2c1249abfff2edd60c4e6bb51d61ad31e12ea6)
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions