diff options
author | Jeremy Allison <jra@samba.org> | 2022-03-28 18:23:05 -0700 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2022-04-11 07:49:13 +0000 |
commit | 60386712349f2a9f48f38fdc7c8dca8d4f635640 (patch) | |
tree | b4a2b655f4291b3b7f768ed0b4d4e2eb408a8301 | |
parent | 552e0867848486629cc18bf52f7922768f41e1d5 (diff) | |
download | samba-60386712349f2a9f48f38fdc7c8dca8d4f635640.tar.gz |
s4: torture: Add CHECK_VAL macro to smb2/rename.c. Not yet used.
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>
(cherry picked from commit e862a2d9ec4e7bec1dd58490e9dee47d543b9154)
-rw-r--r-- | source4/torture/smb2/rename.c | 14 |
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, \ |