aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-10-29 17:38:05 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-11-02 11:16:38 +0100
commitf6b390084e77ff3d97bc5e6294f104a41ca92332 (patch)
treeaac54926a3592946301ec6265906840e050a5fbb /tests
parentb7fefb05007cfbcded5b413cb4f77475aebf074c (diff)
downloadlibssh-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>
Diffstat (limited to 'tests')
-rw-r--r--tests/client/torture_auth.c5
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;
}