From f6b390084e77ff3d97bc5e6294f104a41ca92332 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 29 Oct 2018 17:38:05 +0100 Subject: [PATCH] tests: Make sure that no other configuration options will get pulled to the auth test from system Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider --- tests/client/torture_auth.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/client/torture_auth.c b/tests/client/torture_auth.c index 3cb014fc..68375cb4 100644 --- a/tests/client/torture_auth.c +++ b/tests/client/torture_auth.c @@ -52,12 +52,17 @@ static int session_setup(void **state) { struct torture_state *s = *state; int verbosity = torture_libssh_verbosity(); + bool b = false; + int rc; s->ssh.session = ssh_new(); assert_non_null(s->ssh.session); ssh_options_set(s->ssh.session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity); ssh_options_set(s->ssh.session, SSH_OPTIONS_HOST, TORTURE_SSH_SERVER); + /* Make sure no other configuration options from system will get used */ + rc = ssh_options_set(s->ssh.session, SSH_OPTIONS_PROCESS_CONFIG, &b); + assert_ssh_return_code(s->ssh.session, rc); return 0; }