From: Andrew Tridgell Date: Wed, 4 Jun 2008 20:04:48 +0000 (-0700) Subject: fixed SMB2-LOCK test for new semantics (from docs) X-Git-Tag: samba-4.0.0alpha5~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d4d4d62939e325f8529b11fcd2d490e8f63293b0;p=thirdparty%2Fsamba.git fixed SMB2-LOCK test for new semantics (from docs) --- diff --git a/source/torture/smb2/lock.c b/source/torture/smb2/lock.c index 35ad8396107..1b08efc0fa4 100644 --- a/source/torture/smb2/lock.c +++ b/source/torture/smb2/lock.c @@ -268,11 +268,7 @@ static bool test_valid_request(struct torture_context *torture, struct smb2_tree lck.in.lock_count = 1; el[0].flags = SMB2_LOCK_FLAG_UNLOCK; status = smb2_lock(tree, &lck); - if (torture_setting_bool(torture, "windows", false)) { - CHECK_STATUS(status, NT_STATUS_RANGE_NOT_LOCKED); - } else { - CHECK_STATUS(status, NT_STATUS_OK); - } + CHECK_STATUS(status, NT_STATUS_RANGE_NOT_LOCKED); lck.in.lock_count = 1; el[0].flags = SMB2_LOCK_FLAG_UNLOCK;