mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09: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:
committed by
Andreas Schneider
parent
20e58be7d8
commit
a006c3c451
@@ -389,10 +389,10 @@ static int try_config_content(void **state, const char *config_content,
|
|||||||
|
|
||||||
/* Authenticate as alice with bob */
|
/* Authenticate as alice with bob */
|
||||||
rc = ssh_options_set(session, SSH_OPTIONS_USER, TORTURE_SSH_USER_ALICE);
|
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);
|
rc = ssh_connect(session);
|
||||||
assert_int_equal(rc, SSH_OK);
|
assert_ssh_return_code(session, rc);
|
||||||
|
|
||||||
rc = ssh_userauth_none(session,NULL);
|
rc = ssh_userauth_none(session,NULL);
|
||||||
/* This request should return a SSH_REQUEST_DENIED error */
|
/* This request should return a SSH_REQUEST_DENIED error */
|
||||||
|
|||||||
Reference in New Issue
Block a user