aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_trpt_test_lib.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2015-07-05 11:18:45 +0200
committerHans Nilsson <[email protected]>2015-07-05 11:18:45 +0200
commitddc7ce9124a8fb03bb95b5d550812c34f4177946 (patch)
tree91f489c0a8ba1ba6f30396809636020090fa8f06 /lib/ssh/test/ssh_trpt_test_lib.erl
parent99003f395207a23935bfd2859f9c7121da5110eb (diff)
parent9931cad6d5f653a8be2bb324450c1d4b2c5637cf (diff)
downloadotp-ddc7ce9124a8fb03bb95b5d550812c34f4177946.tar.gz
otp-ddc7ce9124a8fb03bb95b5d550812c34f4177946.tar.bz2
otp-ddc7ce9124a8fb03bb95b5d550812c34f4177946.zip
Merge branch 'hans/ssh/no_common_algs/OTP-11531' into maint
* hans/ssh/no_common_algs/OTP-11531: ssh: be more generous about disconnect expects ssh: add disjunction to ssh_trpt_test_lib:match
Diffstat (limited to 'lib/ssh/test/ssh_trpt_test_lib.erl')
-rw-r--r--lib/ssh/test/ssh_trpt_test_lib.erl7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ssh/test/ssh_trpt_test_lib.erl b/lib/ssh/test/ssh_trpt_test_lib.erl
index a604fca1ac..75f495b6d7 100644
--- a/lib/ssh/test/ssh_trpt_test_lib.erl
+++ b/lib/ssh/test/ssh_trpt_test_lib.erl
@@ -218,6 +218,13 @@ match('$$', V, S) ->
match('_', _, S) ->
{true, S};
+match({'or',[P]}, V, S) -> match(P,V,S);
+match({'or',[Ph|Pt]}, V, S) ->
+ case match(Ph,V,S) of
+ false -> match({'or',Pt}, V, S);
+ {true,S} -> {true,S}
+ end;
+
match(P, V, S) when is_atom(P) ->
case atom_to_list(P) of
"$"++_ ->