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

@@ -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);