aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-12-29 09:12:12 +0100
committerAndreas Schneider <asn@cynapses.org>2010-12-29 09:13:17 +0100
commit3e2f714248c6cdad706303027dea7fab4e2b1bab (patch)
tree7376684cf645943c76dcca9861ecd7db37199833 /tests
parent530c17e2ef280d3452dd1a5d61d21383d9dec546 (diff)
downloadlibssh-3e2f714248c6cdad706303027dea7fab4e2b1bab.tar.gz
libssh-3e2f714248c6cdad706303027dea7fab4e2b1bab.tar.xz
libssh-3e2f714248c6cdad706303027dea7fab4e2b1bab.zip
tests: Fixed a assert bug in torture_auth.
Diffstat (limited to 'tests')
-rw-r--r--tests/client/torture_auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/client/torture_auth.c b/tests/client/torture_auth.c
index 463ebd10..7c8edb29 100644
--- a/tests/client/torture_auth.c
+++ b/tests/client/torture_auth.c
@@ -77,7 +77,7 @@ static void torture_auth_kbdint(void **state) {
assert_int_equal(ssh_userauth_kbdint_getnprompts(session), 1);
rc = ssh_userauth_kbdint_setanswer(session, 0, password);
- assert_true(rc < 0);
+ assert_false(rc < 0);
rc = ssh_userauth_kbdint(session, NULL, NULL);
/* Sometimes, SSH server send an empty query at the end of exchange */