1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2026-01-06 14:21:55 +03:00

tests: Use consistent checking for ssh return code

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2019-05-29 20:06:39 +02:00
committed by Andreas Schneider
parent 20e58be7d8
commit a006c3c451

View File

@@ -389,10 +389,10 @@ static int try_config_content(void **state, const char *config_content,
/* Authenticate as alice with bob */
rc = ssh_options_set(session, SSH_OPTIONS_USER, TORTURE_SSH_USER_ALICE);
assert_int_equal(rc, SSH_OK);
assert_ssh_return_code(session, rc);
rc = ssh_connect(session);
assert_int_equal(rc, SSH_OK);
assert_ssh_return_code(session, rc);
rc = ssh_userauth_none(session,NULL);
/* This request should return a SSH_REQUEST_DENIED error */