summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/smb2/rename.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/torture/smb2/rename.c b/source4/torture/smb2/rename.c
index 5055cf24344..60234769797 100644
--- a/source4/torture/smb2/rename.c
+++ b/source4/torture/smb2/rename.c
@@ -30,6 +30,20 @@
#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, \