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-25 16:46:27 +0000
commitca2c1249abfff2edd60c4e6bb51d61ad31e12ea6 (patch)
treeebba3cb4b5f5ea1b6184f96780e3e7b5fab52ad5 /annotations/generate_annotated_java_files.py
parentbfe228400b219a2b349744698caa1d0a81d1dd4a (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
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions