mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-31 00:03:07 +03:00
tests: auth_agent_nonblocking should run in nonblocking
This commit is contained in:
@ -354,6 +354,8 @@ static void torture_auth_agent_nonblocking(void **state) {
|
|||||||
rc = ssh_userauth_list(session, NULL);
|
rc = ssh_userauth_list(session, NULL);
|
||||||
assert_true(rc & SSH_AUTH_METHOD_PUBLICKEY);
|
assert_true(rc & SSH_AUTH_METHOD_PUBLICKEY);
|
||||||
|
|
||||||
|
ssh_set_blocking(session,0);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
rc = ssh_userauth_agent(session, NULL);
|
rc = ssh_userauth_agent(session, NULL);
|
||||||
} while (rc == SSH_AUTH_AGAIN);
|
} while (rc == SSH_AUTH_AGAIN);
|
||||||
|
Reference in New Issue
Block a user