mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 18:28:10 +09:00
tests: Prefer assert_non_null over assert_true
This also replaces some occurrences of assert_true with assert_null. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
89f58decb6
commit
603b6d7222
@@ -186,7 +186,7 @@ static void test_ssh_channel_request_x11(void **state) {
|
||||
assert_return_code(rc, errno);
|
||||
|
||||
server = ssh_new();
|
||||
assert_true(server != NULL);
|
||||
assert_non_null(server);
|
||||
|
||||
rc = ssh_bind_accept(sshbind, server);
|
||||
assert_int_equal(rc, SSH_OK);
|
||||
@@ -198,7 +198,7 @@ static void test_ssh_channel_request_x11(void **state) {
|
||||
assert_int_equal(rc, SSH_OK);
|
||||
|
||||
event = ssh_event_new();
|
||||
assert_true(event != NULL);
|
||||
assert_non_null(event);
|
||||
|
||||
ssh_event_add_session(event, server);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user