aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2014-01-06 22:09:43 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2014-01-06 22:10:23 +0100
commitfc0db4d982d26a96ad232676bba402f105ef90e5 (patch)
tree4f26f4d163188c94e12c83f646451b91fe244512 /tests
parent8f1a350b6e3087baf93c6d42b90d6a6caadd7483 (diff)
downloadlibssh-fc0db4d982d26a96ad232676bba402f105ef90e5.tar.gz
libssh-fc0db4d982d26a96ad232676bba402f105ef90e5.tar.xz
libssh-fc0db4d982d26a96ad232676bba402f105ef90e5.zip
test: fixed torture_auth_none condition
Diffstat (limited to 'tests')
-rw-r--r--tests/client/torture_auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/client/torture_auth.c b/tests/client/torture_auth.c
index 92c84273..f97eb181 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);
}