diff options
author | Jakub Jelen <jjelen@redhat.com> | 2018-10-29 17:38:05 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-11-02 11:16:38 +0100 |
commit | f6b390084e77ff3d97bc5e6294f104a41ca92332 (patch) | |
tree | aac54926a3592946301ec6265906840e050a5fbb | |
parent | b7fefb05007cfbcded5b413cb4f77475aebf074c (diff) | |
download | libssh-f6b390084e77ff3d97bc5e6294f104a41ca92332.tar.gz libssh-f6b390084e77ff3d97bc5e6294f104a41ca92332.tar.xz libssh-f6b390084e77ff3d97bc5e6294f104a41ca92332.zip |
tests: Make sure that no other configuration options will get pulled to the auth test from system
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | tests/client/torture_auth.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |