diff options
author | Hans Nilsson <[email protected]> | 2016-10-27 15:11:32 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2016-10-27 15:24:00 +0200 |
commit | f52b2eca4fd8efdde8d0c178d03ddce780bc61b1 (patch) | |
tree | 132d630a12b1a43b08653830ba6b4eee95703ad3 /lib/ssh/test/ssh_to_openssh_SUITE.erl | |
parent | 1e9134eaac9df9743e28e5eb5913d76fa556a52b (diff) | |
download | otp-f52b2eca4fd8efdde8d0c178d03ddce780bc61b1.tar.gz otp-f52b2eca4fd8efdde8d0c178d03ddce780bc61b1.tar.bz2 otp-f52b2eca4fd8efdde8d0c178d03ddce780bc61b1.zip |
ssh: improve result processing in test
Diffstat (limited to 'lib/ssh/test/ssh_to_openssh_SUITE.erl')
-rw-r--r-- | lib/ssh/test/ssh_to_openssh_SUITE.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh/test/ssh_to_openssh_SUITE.erl b/lib/ssh/test/ssh_to_openssh_SUITE.erl index 34d65ddbfd..82288ca142 100644 --- a/lib/ssh/test/ssh_to_openssh_SUITE.erl +++ b/lib/ssh/test/ssh_to_openssh_SUITE.erl @@ -417,7 +417,7 @@ erlang_server_openssh_client_renegotiate(Config) -> not lists:member(C,lists:seq($A,$Z)) ], Lines = string:tokens(binary_to_list(R), NonAlphaChars), - lists:any(fun(L) -> lists:prefix(L, Data) end, + lists:any(fun(L) -> length(L)>1 andalso lists:prefix(L, Data) end, Lines) catch _:_ -> false |