aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/test/snmp_to_snmpnet_SUITE.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2016-09-05 16:05:07 +0200
committerIngela Anderton Andin <[email protected]>2016-09-12 16:05:02 +0200
commit622a93103493993a4c8755f116693a9f625d2ad0 (patch)
treefb0f91d7f42c1129c7ab2a317ccf8e952c1f6689 /lib/snmp/test/snmp_to_snmpnet_SUITE.erl
parent61b1abd20322ad4f05eab7d53c333c6a1e91c296 (diff)
downloadotp-622a93103493993a4c8755f116693a9f625d2ad0.tar.gz
otp-622a93103493993a4c8755f116693a9f625d2ad0.tar.bz2
otp-622a93103493993a4c8755f116693a9f625d2ad0.zip
snmp: Use ipv6 common test configuration check
The test for ipv6 could return false positives which resulted in failing test cases due lack of full ipv6 support.It could be nice with a working run-time check but this will do for now.
Diffstat (limited to 'lib/snmp/test/snmp_to_snmpnet_SUITE.erl')
-rw-r--r--lib/snmp/test/snmp_to_snmpnet_SUITE.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/snmp/test/snmp_to_snmpnet_SUITE.erl b/lib/snmp/test/snmp_to_snmpnet_SUITE.erl
index ac9e37bc8b..24c14d86ea 100644
--- a/lib/snmp/test/snmp_to_snmpnet_SUITE.erl
+++ b/lib/snmp/test/snmp_to_snmpnet_SUITE.erl
@@ -121,14 +121,14 @@ init_per_group(_, Config) ->
Config.
init_per_group_ipv6(Families, Config) ->
+ {ok, Hostname0} = inet:gethostname(),
case ct:require(ipv6_hosts) of
ok ->
- case gen_udp:open(0, [inet6]) of
- {ok, S} ->
- ok = gen_udp:close(S),
+ case lists:member(list_to_atom(Hostname0), ct:get_config(ipv6_hosts)) of
+ true ->
init_per_group_ip(Families, Config);
- {error, _} ->
- {skip, "Host seems to not support IPv6"}
+ false ->
+ {skip, "Host does not support IPv6"}
end;
_ ->
{skip, "Test config ipv6_hosts is missing"}