diff options
author | Jeremy Allison <jra@samba.org> | 2022-03-28 18:24:27 -0700 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2022-04-11 07:49:13 +0000 |
commit | 140670f6c05846f004ed70a3642780b3fa199bac (patch) | |
tree | 8f39dd085a94a2d261ee386006ba8001beb64747 /source4/torture | |
parent | 60386712349f2a9f48f38fdc7c8dca8d4f635640 (diff) | |
download | samba-140670f6c05846f004ed70a3642780b3fa199bac.tar.gz |
s4: torture: Add CHECK_CREATED macro to smb2/rename.c. Not yet used.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15038
Reviewed-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 4725ef5c96395dc2f48fab1160a3312d95e21416)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/smb2/rename.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/torture/smb2/rename.c b/source4/torture/smb2/rename.c index 60234769797..c8d3c95d166 100644 --- a/source4/torture/smb2/rename.c +++ b/source4/torture/smb2/rename.c @@ -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, \ |