aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-10-27 15:11:32 +0200
committerHans Nilsson <[email protected]>2016-10-27 15:24:00 +0200
commitf52b2eca4fd8efdde8d0c178d03ddce780bc61b1 (patch)
tree132d630a12b1a43b08653830ba6b4eee95703ad3
parent1e9134eaac9df9743e28e5eb5913d76fa556a52b (diff)
downloadotp-f52b2eca4fd8efdde8d0c178d03ddce780bc61b1.tar.gz
otp-f52b2eca4fd8efdde8d0c178d03ddce780bc61b1.tar.bz2
otp-f52b2eca4fd8efdde8d0c178d03ddce780bc61b1.zip
ssh: improve result processing in test
-rw-r--r--lib/ssh/test/ssh_to_openssh_SUITE.erl2
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