mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09: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
@@ -66,7 +66,7 @@ static void torture_sftp_mkdir(void **state) {
|
||||
char tmpdir[128] = {0};
|
||||
int rc;
|
||||
|
||||
assert_false(t == NULL);
|
||||
assert_non_null(t);
|
||||
|
||||
snprintf(tmpdir, sizeof(tmpdir) - 1, "%s/mkdir_test", t->testdir);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user