torture: Continue buffer check after NOT_IMPLEMENTED infolevels
authorVolker Lendecke <vl@samba.org>
Fri, 27 Sep 2013 04:21:21 +0000 (21:21 -0700)
committerStefan Metzmacher <metze@samba.org>
Sun, 6 Oct 2013 11:56:15 +0000 (13:56 +0200)
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>
source4/torture/smb2/getinfo.c

index fafc36c31de43bf44cefdaa7bb7b1ac6126fa467..34fc8eef0d6022172f6d6c81d8fdac1ca18a1497 100644 (file)
@@ -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");