diff options
author | Raimo Niskanen <[email protected]> | 2014-08-18 15:17:45 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2014-08-19 10:03:13 +0200 |
commit | e1a6e43da5b249dd75e2baadd494921cf1684323 (patch) | |
tree | f448143cd37a3e6505c19475817cf1c5abb644f0 /lib/snmp/test/snmp_to_snmpnet_SUITE.erl | |
parent | 39176f2ab7f07c676e797455000bc2dfc6bb751c (diff) | |
download | otp-e1a6e43da5b249dd75e2baadd494921cf1684323.tar.gz otp-e1a6e43da5b249dd75e2baadd494921cf1684323.tar.bz2 otp-e1a6e43da5b249dd75e2baadd494921cf1684323.zip |
Improve testcase test for IPv6 capable host
Diffstat (limited to 'lib/snmp/test/snmp_to_snmpnet_SUITE.erl')
-rw-r--r-- | lib/snmp/test/snmp_to_snmpnet_SUITE.erl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/snmp/test/snmp_to_snmpnet_SUITE.erl b/lib/snmp/test/snmp_to_snmpnet_SUITE.erl index 1c2e08dc41..5ce9cf9e5c 100644 --- a/lib/snmp/test/snmp_to_snmpnet_SUITE.erl +++ b/lib/snmp/test/snmp_to_snmpnet_SUITE.erl @@ -110,9 +110,15 @@ init_per_group(_, Config) -> init_per_group_ipv6(Families, Config) -> case ct:require(ipv6_hosts) of ok -> - init_per_group_ip(Families, Config); + case gen_udp:open(0, [inet6]) of + {ok, S} -> + ok = gen_udp:close(S), + init_per_group_ip(Families, Config); + {error, _} -> + {skip, "Host seems to not support IPv6"} + end; _ -> - {skip, "Host does not support IPV6"} + {skip, "Test config ipv6_hosts is missing"} end. init_per_group_ip(Families, Config) -> |