diff options
author | Hans Nilsson <hans@erlang.org> | 2020-01-10 15:06:39 +0100 |
---|---|---|
committer | Hans Nilsson <hans@erlang.org> | 2020-01-10 15:07:17 +0100 |
commit | 471fdbdbb0f4a558446989c0443732065028503e (patch) | |
tree | b6cc1597d48c0f1f62d5cf1f10f5a127092af7f0 /lib/ssh/test/ssh_test_lib.erl | |
parent | 3e1c5455d404180aa4362731098137ef2cc74b18 (diff) | |
download | erlang-471fdbdbb0f4a558446989c0443732065028503e.tar.gz |
ssh: Ptty test fixes
Diffstat (limited to 'lib/ssh/test/ssh_test_lib.erl')
-rw-r--r-- | lib/ssh/test/ssh_test_lib.erl | 16 |
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. + + + + + + |