diff options
author | Lukas Larsson <[email protected]> | 2017-05-22 16:21:58 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2017-05-22 16:21:58 +0200 |
commit | 1d6ec21da2d91f4226fb42506299e782ccdb4644 (patch) | |
tree | 2542d1c7377ca8c1e1bd217c2f83c11ad807b876 /lib/kernel/test/inet_sockopt_SUITE.erl | |
parent | 05dce0f330c83278cb134c7235a5353ce4116307 (diff) | |
download | otp-1d6ec21da2d91f4226fb42506299e782ccdb4644.tar.gz otp-1d6ec21da2d91f4226fb42506299e782ccdb4644.tar.bz2 otp-1d6ec21da2d91f4226fb42506299e782ccdb4644.zip |
kernel: Skip ipv6 tcs when cpiv6 is disabled
For some reason doing a gen_udp:open(0, [inet6,{ipv6_v6only,true}])
works on some systems where ipv6 is disabled. So instead we
explicitly require the localhost ip to do the test at which seems
to work better.
ipv6 was disabled in sysctl using the line net.ipv6.conf.all.disable_ipv6=1
when this behaviour was found.
Diffstat (limited to 'lib/kernel/test/inet_sockopt_SUITE.erl')
-rw-r--r-- | lib/kernel/test/inet_sockopt_SUITE.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/test/inet_sockopt_SUITE.erl b/lib/kernel/test/inet_sockopt_SUITE.erl index 322b9f30fe..9413cbd976 100644 --- a/lib/kernel/test/inet_sockopt_SUITE.erl +++ b/lib/kernel/test/inet_sockopt_SUITE.erl @@ -620,7 +620,7 @@ ipv6_v6only_close(Module, Socket) -> %% Test using socket option ipv6_v6only for UDP. use_ipv6_v6only_udp(Config) when is_list(Config) -> - case gen_udp:open(0, [inet6,{ipv6_v6only,true}]) of + case gen_udp:open(0, [inet6,{ip,{0,0,0,0,0,0,0,1}}, {ipv6_v6only,true}]) of {ok,S6} -> case inet:getopts(S6, [ipv6_v6only]) of {ok,[{ipv6_v6only,true}]} -> |