aboutsummaryrefslogtreecommitdiff
path: root/tests/client/torture_auth.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2014-01-06 16:40:39 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2014-01-06 16:52:35 +0100
commit15ed51cf2003f93c29dbb395a62685968311f1c0 (patch)
tree231ab5e61e323a5f51e1f0f73dbde70d66fe1d06 /tests/client/torture_auth.c
parent7b2e07ecbc1e416d35270f790f843ba4d90fa40a (diff)
downloadlibssh-15ed51cf2003f93c29dbb395a62685968311f1c0.tar.gz
libssh-15ed51cf2003f93c29dbb395a62685968311f1c0.tar.xz
libssh-15ed51cf2003f93c29dbb395a62685968311f1c0.zip
tests: auth_agent_nonblocking should run in nonblocking
Diffstat (limited to 'tests/client/torture_auth.c')
-rw-r--r--tests/client/torture_auth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/client/torture_auth.c b/tests/client/torture_auth.c
index 9e3d46f2..d8c74515 100644
--- a/tests/client/torture_auth.c
+++ b/tests/client/torture_auth.c
@@ -273,7 +273,6 @@ static void torture_auth_password_nonblocking(void **state) {
rc = ssh_connect(session);
assert_true(rc == SSH_OK);
- ssh_set_blocking(session,0);
ssh_set_blocking(session,0);
do {
@@ -355,6 +354,8 @@ static void torture_auth_agent_nonblocking(void **state) {
rc = ssh_userauth_list(session, NULL);
assert_true(rc & SSH_AUTH_METHOD_PUBLICKEY);
+ ssh_set_blocking(session,0);
+
do {
rc = ssh_userauth_agent(session, NULL);
} while (rc == SSH_AUTH_AGAIN);