]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4: torture: Add CHECK_VAL macro to smb2/rename.c. Not yet used.
authorJeremy Allison <jra@samba.org>
Tue, 29 Mar 2022 01:23:05 +0000 (18:23 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 30 Mar 2022 14:16:29 +0000 (14:16 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15038

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/torture/smb2/rename.c

index 5055cf24344d68582a3c9750130f18ddb85bcef3..6023476979788f54c192b3c4e64b1fb6858c5cea 100644 (file)
 
 #include "librpc/gen_ndr/security.h"
 
+#define CHECK_VAL(v, correct) \
+       do { \
+               if ((v) != (correct)) { \
+                       torture_result(torture, \
+                               TORTURE_FAIL, \
+                               "(%s): wrong value for %s got " \
+                               "0x%llx - should be 0x%llx\n", \
+                               __location__, #v, \
+                               (unsigned long long)v, \
+                               (unsigned long long)correct); \
+                       ret = false; \
+                       goto done; \
+       }} while (0)
+
 #define CHECK_STATUS(status, correct) do { \
        if (!NT_STATUS_EQUAL(status, correct)) { \
                torture_result(torture, TORTURE_FAIL, \