mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4: torture: Add CHECK_CREATED 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
e862a2d9ec
commit
4725ef5c96
@ -44,6 +44,14 @@
|
||||
goto done; \
|
||||
}} while (0)
|
||||
|
||||
#define CHECK_CREATED(__io, __created, __attribute) \
|
||||
do { \
|
||||
CHECK_VAL((__io)->out.create_action, NTCREATEX_ACTION_ ## __created); \
|
||||
CHECK_VAL((__io)->out.size, 0); \
|
||||
CHECK_VAL((__io)->out.file_attr, (__attribute)); \
|
||||
CHECK_VAL((__io)->out.reserved2, 0); \
|
||||
} 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