From 03d559b066ad74bbbbb20a52b7b9f703d32ab78d Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 4 Sep 2018 15:35:05 +0200 Subject: [PATCH] tests: No need to restore log level now Since the verbosity is now set from the setup phase, we do not need to reset the verbosity, especially not to any arbirary value such as WARNING. Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider (cherry picked from commit fcb203cb2d483a58eb28c39cfdcd4512fb96fe60) --- tests/unittests/torture_config.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/unittests/torture_config.c b/tests/unittests/torture_config.c index b1fdb51e..4b225fdd 100644 --- a/tests/unittests/torture_config.c +++ b/tests/unittests/torture_config.c @@ -220,7 +220,6 @@ static void torture_config_new(void **state) { ssh_session session = *state; int ret = 0; - int verbosity = SSH_LOG_WARNING; ret = ssh_config_parse_file(session, LIBSSH_TESTCONFIG7); assert_true(ret == 0); @@ -232,9 +231,6 @@ static void torture_config_new(void **state) assert_int_equal(ssh_get_log_level(), SSH_LOG_TRACE); assert_int_equal(session->common.log_verbosity, SSH_LOG_TRACE); - - /* reset to something sane */ - ssh_options_set(session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity); } /**