diff options
author | Lukas Larsson <[email protected]> | 2011-02-14 16:55:27 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2011-02-17 17:42:39 +0100 |
commit | d1a2f287ee9059cb8f16e40c2808d98d09a74dd9 (patch) | |
tree | 10a303583afaa2579158417f4e5c0d0da394ab8e /lib/kernel | |
parent | 308d6638450f5ffc7f432302367e84bcd92ea683 (diff) | |
download | otp-d1a2f287ee9059cb8f16e40c2808d98d09a74dd9.tar.gz otp-d1a2f287ee9059cb8f16e40c2808d98d09a74dd9.tar.bz2 otp-d1a2f287ee9059cb8f16e40c2808d98d09a74dd9.zip |
Update gethostname test cases for v6 to use the v6 hosts instead of v4
Diffstat (limited to 'lib/kernel')
-rw-r--r-- | lib/kernel/test/inet_SUITE.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kernel/test/inet_SUITE.erl b/lib/kernel/test/inet_SUITE.erl index 622107fa84..523e5c63ce 100644 --- a/lib/kernel/test/inet_SUITE.erl +++ b/lib/kernel/test/inet_SUITE.erl @@ -386,7 +386,7 @@ try_host({Ip0, Host}) -> %% Get all hosts from the system using 'ypcat hosts' or the local %% equvivalent. -get_hosts(Config) -> +get_hosts(_Config) -> case os:type() of {unix, _} -> List = lists:map(fun(X) -> @@ -399,12 +399,12 @@ get_hosts(Config) -> ct:get_config(hardcoded_hosts) end. -get_ipv6_hosts(Config) -> +get_ipv6_hosts(_Config) -> case os:type() of {unix, _} -> List = lists:map(fun(X) -> atom_to_list(X)++" " - end, ct:get_config(test_hosts)), + end, ct:get_config(ipv6_hosts)), Cmd = "ypmatch "++List++" ipnodes.byname", HostFile = os:cmd(Cmd), get_hosts(HostFile, [], [], []); |