]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture/smb2: don't expect a DHnQ response in a DHnC request
authorStefan Metzmacher <metze@samba.org>
Thu, 6 Sep 2012 09:49:42 +0000 (11:49 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 6 Sep 2012 22:32:30 +0000 (00:32 +0200)
This is fixed in Windows 2012 and matches the [MS-SMB2] documentation
now.

metze

source4/torture/smb2/durable_open.c

index 659fa9d508da9b41ededf1323949c08157330aa0..faad8666fc2bea982b41348f04fac0b9fc016a69 100644 (file)
@@ -450,7 +450,6 @@ bool test_durable_open_reopen2(struct torture_context *tctx,
        status = smb2_create(tree, mem_ctx, &io2);
        CHECK_STATUS(status, NT_STATUS_OK);
        CHECK_CREATED(&io2, EXISTED, FILE_ATTRIBUTE_ARCHIVE);
-       CHECK_VAL(io2.out.durable_open, true);
        CHECK_VAL(io2.out.oplock_level, smb2_util_oplock_level("b"));
        _h = io2.out.file.handle;
        h = &_h;
@@ -524,7 +523,6 @@ bool test_durable_open_reopen2a(struct torture_context *tctx,
        status = smb2_create(tree, mem_ctx, &io2);
        CHECK_STATUS(status, NT_STATUS_OK);
        CHECK_CREATED(&io2, EXISTED, FILE_ATTRIBUTE_ARCHIVE);
-       CHECK_VAL(io2.out.durable_open, true);
        CHECK_VAL(io2.out.oplock_level, smb2_util_oplock_level("b"));
        _h = io2.out.file.handle;
        h = &_h;
@@ -689,7 +687,6 @@ bool test_durable_open_reopen4(struct torture_context *tctx,
        _h = io2.out.file.handle;
        h = &_h;
        CHECK_CREATED(&io2, EXISTED, FILE_ATTRIBUTE_ARCHIVE);
-       CHECK_VAL(io2.out.durable_open, true);
        CHECK_VAL(io2.out.oplock_level, smb2_util_oplock_level("b"));
 
 done:
@@ -895,7 +892,6 @@ bool test_durable_open_file_position(struct torture_context *tctx,
 
        status = smb2_create(tree2, mem_ctx, &io2);
        CHECK_STATUS(status, NT_STATUS_OK);
-       CHECK_VAL(io2.out.durable_open, true);
        CHECK_VAL(io2.out.oplock_level, SMB2_OPLOCK_LEVEL_BATCH);
        CHECK_VAL(io2.out.reserved, 0x00);
        CHECK_VAL(io2.out.create_action, NTCREATEX_ACTION_EXISTED);