]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
torture4: Use torture_assert_not_null where appropriate
authorVolker Lendecke <vl@samba.org>
Sun, 23 Feb 2020 10:15:06 +0000 (11:15 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 25 Feb 2020 17:44:45 +0000 (17:44 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/libsmbclient/libsmbclient.c

index 758ad6bf0a0da9ecb3f5e0376a69ccfadfcd7ae4..ee1bbc67a95d803a3c80ede64da23a5732f3c733 100644 (file)
@@ -175,9 +175,10 @@ static bool torture_libsmbclient_setConfiguration(struct torture_context *tctx)
                                "");
 
        ctx = smbc_new_context();
-       torture_assert(tctx, ctx, "failed to get new context");
+       torture_assert_not_null(tctx, ctx, "failed to get new context");
 
-       torture_assert(tctx, smbc_init_context(ctx), "failed to init context");
+       torture_assert_not_null(
+               tctx, smbc_init_context(ctx), "failed to init context");
 
        torture_comment(tctx, "Testing smbc_setConfiguration - new file %s\n",
                new_smb_conf);