From: Douglas Bagnall Date: Wed, 13 Apr 2022 23:47:57 +0000 (+1200) Subject: s4/torture/unix_info2: return NULL on failure X-Git-Tag: tevent-0.13.0~372 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaf829ad0bf4bddf84da2dee0e375e36b13ad76d;p=thirdparty%2Fsamba.git s4/torture/unix_info2: return NULL on failure false is also NULL, but NULL is NULLer. Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Fri Jun 17 02:18:32 UTC 2022 on sn-devel-184 --- diff --git a/source4/torture/unix/unix_info2.c b/source4/torture/unix/unix_info2.c index 2098b225e7f..cf3ea3786bf 100644 --- a/source4/torture/unix/unix_info2.c +++ b/source4/torture/unix/unix_info2.c @@ -73,7 +73,7 @@ static struct smbcli_state *connect_to_server(struct torture_context *tctx) if (!NT_STATUS_IS_OK(status)) { torture_comment(tctx, "failed to connect to //%s/%s: %s\n", host, share, nt_errstr(status)); - torture_fail(tctx, "Failed to connect to server"); + torture_result(tctx, TORTURE_FAIL, "Failed to connect to server"); return NULL; }