summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-06-04 13:04:48 -0700
committerAndrew Tridgell <tridge@samba.org>2008-06-04 13:04:48 -0700
commit93d6332e7e9fd54518d8209493b3b23301c299db (patch)
treef011cc7a0bd26f251df7827fbc243ae22ad3258d /source4/torture
parent9cf72946aaf32d4335c8e59eb805844cadea76a8 (diff)
downloadsamba-93d6332e7e9fd54518d8209493b3b23301c299db.tar.gz
samba-93d6332e7e9fd54518d8209493b3b23301c299db.tar.bz2
samba-93d6332e7e9fd54518d8209493b3b23301c299db.zip
fixed SMB2-LOCK test for new semantics (from docs)
(This used to be commit d4d4d62939e325f8529b11fcd2d490e8f63293b0)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smb2/lock.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source4/torture/smb2/lock.c b/source4/torture/smb2/lock.c
index 35ad839610..1b08efc0fa 100644
--- a/source4/torture/smb2/lock.c
+++ b/source4/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;