summaryrefslogtreecommitdiff
path: root/source4/torture/smb2/setinfo.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-07-01 14:21:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:42 -0500
commitd584033c6c04c0ded37c030a35fae518b09b053a (patch)
treec48309d1f25b1c9dbe54841b71e5d5670ba1c3eb /source4/torture/smb2/setinfo.c
parentf0c737b92441ef54978ce8566be932092896bb6a (diff)
downloadsamba-d584033c6c04c0ded37c030a35fae518b09b053a.tar.gz
samba-d584033c6c04c0ded37c030a35fae518b09b053a.tar.bz2
samba-d584033c6c04c0ded37c030a35fae518b09b053a.zip
r16737: if an error happens report it
metze (This used to be commit 52ce898cf9f11293005683844b8ea428a5d66f8e)
Diffstat (limited to 'source4/torture/smb2/setinfo.c')
-rw-r--r--source4/torture/smb2/setinfo.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/torture/smb2/setinfo.c b/source4/torture/smb2/setinfo.c
index 6db50eae99..00b4fb47d0 100644
--- a/source4/torture/smb2/setinfo.c
+++ b/source4/torture/smb2/setinfo.c
@@ -89,6 +89,7 @@ BOOL torture_smb2_setinfo(struct torture_context *torture)
printf("(%s) %s - %s (should be %s)\n", __location__, #call, \
nt_errstr(status), nt_errstr(rightstatus)); \
ret = False; \
+ goto done; \
} \
} while (0)
@@ -99,6 +100,8 @@ BOOL torture_smb2_setinfo(struct torture_context *torture)
status2 = smb2_getinfo_file(tree, mem_ctx, &finfo2); \
if (!NT_STATUS_IS_OK(status2)) { \
printf("(%s) %s - %s\n", __location__, #call, nt_errstr(status2)); \
+ ret = False; \
+ goto done; \
} \
}} while (0)
@@ -109,6 +112,8 @@ BOOL torture_smb2_setinfo(struct torture_context *torture)
call_name, #stype, #field, \
(uint_t)value, (uint_t)finfo2.stype.out.field); \
torture_smb2_all_info(tree, handle); \
+ ret = False; \
+ goto done; \
}} while (0)
#define CHECK_TIME(call, stype, field, value) do { \
@@ -121,6 +126,8 @@ BOOL torture_smb2_setinfo(struct torture_context *torture)
printf("\t%s", timestring(mem_ctx, value)); \
printf("\t%s\n", nt_time_string(mem_ctx, finfo2.stype.out.field)); \
torture_smb2_all_info(tree, handle); \
+ ret = False; \
+ goto done; \
}} while (0)
#define CHECK_STR(call, stype, field, value) do { \
@@ -131,6 +138,8 @@ BOOL torture_smb2_setinfo(struct torture_context *torture)
value, \
finfo2.stype.out.field); \
torture_smb2_all_info(tree, handle); \
+ ret = False; \
+ goto done; \
}} while (0)
#define CHECK_STATUS(status, correct) do { \