]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/torture/unix_info2: return NULL on failure
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 13 Apr 2022 23:47:57 +0000 (11:47 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 Jun 2022 02:18:32 +0000 (02:18 +0000)
false is also NULL, but NULL is NULLer.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Jun 17 02:18:32 UTC 2022 on sn-devel-184

source4/torture/unix/unix_info2.c

index 2098b225e7fc683ff1d7b0968bc69d276fa791c5..cf3ea3786bfa9d9e77d201cb8ac2e0a20592de53 100644 (file)
@@ -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;
        }