From 960bd9a584a27bde45433be1ca869b2197cf465d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 26 Sep 2013 21:21:21 -0700 Subject: 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 Reviewed-by: Stefan Metzmacher --- source4/torture/smb2/getinfo.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4') 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"); -- cgit