mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
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>
This commit is contained in:
parent
e01c5992b0
commit
e862a2d9ec
@ -30,6 +30,20 @@
|
|||||||
|
|
||||||
#include "librpc/gen_ndr/security.h"
|
#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 { \
|
#define CHECK_STATUS(status, correct) do { \
|
||||||
if (!NT_STATUS_EQUAL(status, correct)) { \
|
if (!NT_STATUS_EQUAL(status, correct)) { \
|
||||||
torture_result(torture, TORTURE_FAIL, \
|
torture_result(torture, TORTURE_FAIL, \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user