From: Volker Lendecke Date: Sun, 23 Feb 2020 10:15:06 +0000 (+0100) Subject: torture4: Use torture_assert_not_null where appropriate X-Git-Tag: ldb-2.2.0~1600 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7b7fbf91bc0ceb2cd9bc9c511beb5322f7837d4;p=thirdparty%2Fsamba.git torture4: Use torture_assert_not_null where appropriate Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source4/torture/libsmbclient/libsmbclient.c b/source4/torture/libsmbclient/libsmbclient.c index 758ad6bf0a0..ee1bbc67a95 100644 --- a/source4/torture/libsmbclient/libsmbclient.c +++ b/source4/torture/libsmbclient/libsmbclient.c @@ -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);