summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-26 21:21:21 -0700
committerStefan Metzmacher <metze@samba.org>2013-10-06 13:56:15 +0200
commit960bd9a584a27bde45433be1ca869b2197cf465d (patch)
treecc133f522bf62f8c292074beebcbe06a49373121 /source4
parentc944d2ea41456d27e1f327f9e50b70c0bbbde824 (diff)
downloadsamba-960bd9a584a27bde45433be1ca869b2197cf465d.tar.gz
samba-960bd9a584a27bde45433be1ca869b2197cf465d.tar.bz2
samba-960bd9a584a27bde45433be1ca869b2197cf465d.zip
torture: Continue buffer check after NOT_IMPLEMENTED infolevels
Patch from the SDC plugfest. Not every implementation supports every infolevel, and we want to be able to test buffersize error behaviour for all supported infolevels Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/smb2/getinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/torture/smb2/getinfo.c b/source4/torture/smb2/getinfo.c
index fafc36c31d..34fc8eef0d 100644
--- a/source4/torture/smb2/getinfo.c
+++ b/source4/torture/smb2/getinfo.c
@@ -328,6 +328,9 @@ static bool torture_smb2_qfile_buffercheck(struct torture_context *tctx)
b.in.output_buffer_length = 65535;
status = smb2_getinfo(tree, tree, &b);
+ if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) {
+ continue;
+ }
torture_assert_ntstatus_equal(
tctx, status, NT_STATUS_OK,
"Wrong error code for large buffer");