mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-31 00:03:07 +03:00
tests: Prefer assert_non_null() over assert_false()
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
bdf968c178
commit
27caaa000b
@ -23,7 +23,7 @@ static int setup(void **state)
|
||||
struct ssh_callbacks_struct *cb;
|
||||
|
||||
cb = malloc(sizeof(struct ssh_callbacks_struct));
|
||||
assert_false(cb == NULL);
|
||||
assert_non_null(cb);
|
||||
ZERO_STRUCTP(cb);
|
||||
|
||||
cb->userdata = (void *) 0x0badc0de;
|
||||
|
Reference in New Issue
Block a user