1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +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:
Anderson Toshiyuki Sasaki
2019-01-15 13:45:10 +01:00
committed by Andreas Schneider
parent bdf968c178
commit 27caaa000b
5 changed files with 8 additions and 8 deletions

View File

@ -11,10 +11,10 @@ static void torture_sftp_ext_new(void **state) {
(void) state;
x = sftp_ext_new();
assert_false(x == NULL);
assert_non_null(x);
assert_int_equal(x->count, 0);
assert_true(x->name == NULL);
assert_true(x->data == NULL);
assert_null(x->name);
assert_null(x->data);
sftp_ext_free(x);
}