diff options
| author | Aris Adamantiadis <aris@0xbadc0de.be> | 2014-01-06 22:09:43 +0100 |
|---|---|---|
| committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2014-01-06 22:09:43 +0100 |
| commit | 42ad55377f2d85c902c8239a91839353f7ad7136 (patch) | |
| tree | 52c45db6f4012e418d49b9841deb44b4da064b32 /tests/client | |
| parent | d771dafe043cb7738c77be17f8772ff8c0f9363f (diff) | |
| download | libssh-42ad55377f2d85c902c8239a91839353f7ad7136.tar.gz libssh-42ad55377f2d85c902c8239a91839353f7ad7136.tar.xz libssh-42ad55377f2d85c902c8239a91839353f7ad7136.zip | |
test: fixed torture_auth_none condition
Diffstat (limited to 'tests/client')
| -rw-r--r-- | tests/client/torture_auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/client/torture_auth.c b/tests/client/torture_auth.c index e3eddad7..af36b79f 100644 --- a/tests/client/torture_auth.c +++ b/tests/client/torture_auth.c @@ -381,7 +381,7 @@ static void torture_auth_none(void **state) { rc = ssh_userauth_none(session,NULL); - assert_true(rc == SSH_ERROR); + assert_true(rc == SSH_AUTH_DENIED); /* This request should return a SSH_REQUEST_DENIED error */ if (rc == SSH_ERROR) { assert_true(ssh_get_error_code(session) == SSH_REQUEST_DENIED); @@ -414,7 +414,7 @@ static void torture_auth_none_nonblocking(void **state) { do { rc = ssh_userauth_none(session,NULL); } while (rc == SSH_AUTH_AGAIN); - assert_true(rc == SSH_AUTH_ERROR); + assert_true(rc == SSH_AUTH_DENIED); assert_true(ssh_get_error_code(session) == SSH_REQUEST_DENIED); } |
