diff options
author | John Högberg <[email protected]> | 2018-02-27 11:58:42 +0100 |
---|---|---|
committer | John Högberg <[email protected]> | 2018-02-27 12:35:20 +0100 |
commit | 5e0c4f113f229b54c8177874032e4528e55bddac (patch) | |
tree | a3e72310b5f4b8bf7ad5de8226332250283e292a | |
parent | 7d8d1c67ec71fbf24b8659faf684fbdc7ab79378 (diff) | |
download | otp-5e0c4f113f229b54c8177874032e4528e55bddac.tar.gz otp-5e0c4f113f229b54c8177874032e4528e55bddac.tar.bz2 otp-5e0c4f113f229b54c8177874032e4528e55bddac.zip |
Skip testing unavailable interfaces in inet_SUITE:getifaddrs
This test consistently failed on Windows when an interface was
enabled but unplugged, as the interface was 'up' but not 'running'.
-rw-r--r-- | lib/kernel/test/inet_SUITE.erl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/kernel/test/inet_SUITE.erl b/lib/kernel/test/inet_SUITE.erl index 3b502be8b8..ba0d075ef2 100644 --- a/lib/kernel/test/inet_SUITE.erl +++ b/lib/kernel/test/inet_SUITE.erl @@ -1083,11 +1083,9 @@ ifaddrs([{If,Opts}|IOs]) -> #ifopts{flags=F} = Ifopts = check_ifopts(Opts, #ifopts{name=If}), case F of {flags,Flags} -> - case lists:member(up, Flags) of - true -> - Ifopts#ifopts.addrs; - false -> - [] + case lists:member(running, Flags) of + true -> Ifopts#ifopts.addrs; + false -> [] end ++ ifaddrs(IOs); undefined -> ifaddrs(IOs) |