summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Nilsson <hans@erlang.org>2020-06-03 17:22:05 +0200
committerHans Nilsson <hans@erlang.org>2020-06-16 11:42:34 +0200
commita2b13ece19ec590172b85889c40127f010323174 (patch)
treeadb7e324855c028a34e94dae0024b81f929720f7
parent88ca70b9d7236f5454e446e7f3eeda3dafbbae55 (diff)
downloaderlang-a2b13ece19ec590172b85889c40127f010323174.tar.gz
ssh: Reneg dbg cover improvments
-rw-r--r--lib/ssh/test/ssh_compat_SUITE.erl1
-rw-r--r--lib/ssh/test/ssh_renegotiate_SUITE.erl5
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/ssh/test/ssh_compat_SUITE.erl b/lib/ssh/test/ssh_compat_SUITE.erl
index e0a5eb8de5..b1fa138716 100644
--- a/lib/ssh/test/ssh_compat_SUITE.erl
+++ b/lib/ssh/test/ssh_compat_SUITE.erl
@@ -267,7 +267,6 @@ login_otp_is_server(Config) ->
all_algorithms_sftp_exec_reneg_otp_is_client(Config) ->
CommonAlgs = proplists:get_value(common_remote_server_algs, Config),
{IP,Port} = ip_port(Config),
-ssh_dbg:start(), ssh_dbg:on([renegotiation]),
chk_all_algos(?FUNCTION_NAME, CommonAlgs, Config,
fun(Tag, Alg) ->
PrefAlgs =
diff --git a/lib/ssh/test/ssh_renegotiate_SUITE.erl b/lib/ssh/test/ssh_renegotiate_SUITE.erl
index b08a5ab1eb..5eff2fe7ac 100644
--- a/lib/ssh/test/ssh_renegotiate_SUITE.erl
+++ b/lib/ssh/test/ssh_renegotiate_SUITE.erl
@@ -87,7 +87,10 @@ rekey2() -> [{timetrap,{seconds,120}}].
rekey3() -> [{timetrap,{seconds,120}}].
rekey4() -> [{timetrap,{seconds,120}}].
-rekey0(Config) -> rekey_chk(Config, 0, 0).
+rekey0(Config) -> ssh_dbg:start(), ssh_dbg:on(renegotiation),
+ R = rekey_chk(Config, 0, 0),
+ ssh_dbg:stop(),
+ R.
rekey1(Config) -> rekey_chk(Config, infinity, 0).
rekey2(Config) -> rekey_chk(Config, {infinity,infinity}, 0).
rekey3(Config) -> rekey_chk(Config, 0, infinity).