mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 20:30:38 +09:00
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 <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
6dbcc21921
commit
fcb203cb2d
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user