aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2015-05-05 17:00:35 +0200
committerIngela Anderton Andin <[email protected]>2015-05-05 17:00:35 +0200
commit7d53cdb5dabeea6c51e56703667ed6879ad29542 (patch)
tree74117d50685cfee71735444ff25b4e91de93c653
parentd6421c98edf2cdd5c3e27c2c7f7a2f59b17487ab (diff)
downloadotp-7d53cdb5dabeea6c51e56703667ed6879ad29542.tar.gz
otp-7d53cdb5dabeea6c51e56703667ed6879ad29542.tar.bz2
otp-7d53cdb5dabeea6c51e56703667ed6879ad29542.zip
ssh: Hadle shell that sends two logout messages
-rw-r--r--lib/ssh/test/ssh_to_openssh_SUITE.erl9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/ssh/test/ssh_to_openssh_SUITE.erl b/lib/ssh/test/ssh_to_openssh_SUITE.erl
index d99123f871..a61fd2dd41 100644
--- a/lib/ssh/test/ssh_to_openssh_SUITE.erl
+++ b/lib/ssh/test/ssh_to_openssh_SUITE.erl
@@ -545,6 +545,7 @@ receive_hej() ->
receive_logout() ->
receive
<<"logout">> ->
+ extra_logout(),
receive
<<"Connection closed">> ->
ok
@@ -564,6 +565,14 @@ receive_normal_exit(Shell) ->
ct:fail({unexpected_msg, Other})
end.
+extra_logout() ->
+ receive
+ <<"logout">> ->
+ ok
+ after 500 ->
+ ok
+ end.
+
%%--------------------------------------------------------------------
%%--------------------------------------------------------------------
%% Check if we have a "newer" ssh client that supports these test cases