summaryrefslogtreecommitdiff
path: root/lib/ssh/test/ssh_test_lib.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ssh/test/ssh_test_lib.erl')
-rw-r--r--lib/ssh/test/ssh_test_lib.erl16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/ssh/test/ssh_test_lib.erl b/lib/ssh/test/ssh_test_lib.erl
index a4794dde1b..1a6a5c6019 100644
--- a/lib/ssh/test/ssh_test_lib.erl
+++ b/lib/ssh/test/ssh_test_lib.erl
@@ -1108,3 +1108,19 @@ report(Comment, Line) ->
crypto:info_lib(),
crypto:info_fips(),
crypto:supports()]).
+
+%%%----------------------------------------------------------------
+lc_name_in(Names) ->
+ case inet:gethostname() of
+ {ok,Name} ->
+ lists:member(string:to_lower(Name), Names);
+ Other ->
+ ct:log("~p:~p inet:gethostname() returned ~p", [?MODULE,?LINE,Other]),
+ false
+ end.
+
+
+
+
+
+