mirror of
https://github.com/samba-team/samba.git
synced 2025-01-07 17:18:11 +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>
(cherry picked from commit e862a2d9ec
)
This commit is contained in:
parent
552e086784
commit
6038671234
@ -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, \
|
||||
|
Loading…
Reference in New Issue
Block a user