]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbtorture: use torture_assert_ntstatus_equal_goto() in CHECK_STATUS() in unlink.c
authorRalph Boehme <slow@samba.org>
Sat, 2 Nov 2024 14:49:41 +0000 (16:49 +0200)
committerAnoop C S <anoopcs@samba.org>
Mon, 11 Nov 2024 14:01:18 +0000 (14:01 +0000)
fixup

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Mon Nov 11 14:01:18 UTC 2024 on atb-devel-224

source4/torture/raw/unlink.c

index 061ebe0e0411840d2a740431239360765e115d0e..77cbb4acb612d4511f0aabd7e31b2b3ccec23fcc 100644 (file)
 #include "torture/util.h"
 #include "torture/raw/proto.h"
 
-#define CHECK_STATUS(status, correct) do { \
-       if (!NT_STATUS_EQUAL(status, correct)) { \
-               printf("(%s) Incorrect status %s - should be %s\n", \
-                      __location__, nt_errstr(status), nt_errstr(correct)); \
-               ret = false; \
-               goto done; \
-       }} while (0)
+#define CHECK_STATUS(status, correct) \
+       torture_assert_ntstatus_equal_goto(tctx, status, correct, ret, done, __location__)
 
 #define BASEDIR "\\testunlink"