diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2014-01-06 16:40:39 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2014-01-06 16:52:44 +0100 |
commit | 09af855b6fe256e196102e6494178cc86dcff4c3 (patch) | |
tree | 9a1d81c3b24879df47e04c291182cf7eaaa4a83a /tests/client | |
parent | 0571360f37cdfc9175a899788951218e7f262444 (diff) | |
download | libssh-09af855b6fe256e196102e6494178cc86dcff4c3.tar.gz libssh-09af855b6fe256e196102e6494178cc86dcff4c3.tar.xz libssh-09af855b6fe256e196102e6494178cc86dcff4c3.zip |
tests: auth_agent_nonblocking should run in nonblocking
Diffstat (limited to 'tests/client')
-rw-r--r-- | tests/client/torture_auth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/client/torture_auth.c b/tests/client/torture_auth.c index 421047fc..f747f8e4 100644 --- a/tests/client/torture_auth.c +++ b/tests/client/torture_auth.c @@ -354,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); |