diff options
author | Raimo Niskanen <[email protected]> | 2010-02-03 09:02:34 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-02-09 13:41:42 +0100 |
commit | 502afaf945dc006c0d2859257b163fd581aee843 (patch) | |
tree | 205546756851f39b4a94f93c7c04c8cffc39f476 | |
parent | cc90d8c3642afa626b483b92c53964365d72b35a (diff) | |
download | otp-502afaf945dc006c0d2859257b163fd581aee843.tar.gz otp-502afaf945dc006c0d2859257b163fd581aee843.tar.bz2 otp-502afaf945dc006c0d2859257b163fd581aee843.zip |
inet_res_SUITE: testcase fix for empty domain name
-rw-r--r-- | lib/kernel/test/inet_res_SUITE.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/kernel/test/inet_res_SUITE.erl b/lib/kernel/test/inet_res_SUITE.erl index d8a8d07a18..5c6e689253 100644 --- a/lib/kernel/test/inet_res_SUITE.erl +++ b/lib/kernel/test/inet_res_SUITE.erl @@ -344,7 +344,13 @@ files_monitor(Config) when is_list(Config) -> do_files_monitor(Config) -> Dir = ?config(priv_dir, Config), {ok,Hostname} = inet:gethostname(), - FQDN = Hostname++"."++inet_db:res_option(domain), + FQDN = + case inet_db:res_option(domain) of + "" -> + Hostname; + _ -> + Hostname++"."++inet_db:res_option(domain) + end, HostsFile = filename:join(Dir, "files_monitor_hosts"), ResolvConf = filename:join(Dir, "files_monitor_resolv.conf"), ok = inet_db:res_option(resolv_conf, ResolvConf), |