aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/test/inets_test_lib.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2013-12-06 15:12:49 +0100
committerIngela Anderton Andin <[email protected]>2014-01-10 14:44:29 +0100
commitfaafa93775d3c56cb6f59b9096e959cac6a59e25 (patch)
tree1ef15d5ed4ec6f0d3365ac46f925da91d5b6a7eb /lib/inets/test/inets_test_lib.erl
parent940e213d07ed34ac6ea6e07bf6fcf97d4a88a64e (diff)
downloadotp-faafa93775d3c56cb6f59b9096e959cac6a59e25.tar.gz
otp-faafa93775d3c56cb6f59b9096e959cac6a59e25.tar.bz2
otp-faafa93775d3c56cb6f59b9096e959cac6a59e25.zip
inets: Start CT'ify httpd_SUITE
Diffstat (limited to 'lib/inets/test/inets_test_lib.erl')
-rw-r--r--lib/inets/test/inets_test_lib.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/inets/test/inets_test_lib.erl b/lib/inets/test/inets_test_lib.erl
index 6ccc7b0da1..08aa559b90 100644
--- a/lib/inets/test/inets_test_lib.erl
+++ b/lib/inets/test/inets_test_lib.erl
@@ -287,7 +287,9 @@ print(F, A, Mod, Line) ->
print("", F, A, Mod, Line).
hostname() ->
- from($@, atom_to_list(node())).
+ {ok, Name} = inet:gethostname(),
+ Name.
+
from(H, [H | T]) -> T;
from(H, [_ | T]) -> from(H, T);
from(_, []) -> [].