diff options
author | Ingela Anderton Andin <[email protected]> | 2013-12-06 15:12:49 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2014-01-10 14:44:29 +0100 |
commit | faafa93775d3c56cb6f59b9096e959cac6a59e25 (patch) | |
tree | 1ef15d5ed4ec6f0d3365ac46f925da91d5b6a7eb /lib/inets/test/inets_test_lib.erl | |
parent | 940e213d07ed34ac6ea6e07bf6fcf97d4a88a64e (diff) | |
download | otp-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.erl | 4 |
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(_, []) -> []. |