summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-11-27 18:09:50 +1100
committerAndrew Tridgell <tridge@samba.org>2009-11-27 19:42:10 +1100
commit7359a2221937f6ff8a70db08ba8fc299e0adb738 (patch)
treed62578e78698bcde9169c48ce35d614e2671b5f9
parent186ea099c5d07c8f229909bd94fafc179f8dcc2a (diff)
downloadsamba-7359a2221937f6ff8a70db08ba8fc299e0adb738.tar.gz
samba-7359a2221937f6ff8a70db08ba8fc299e0adb738.tar.bz2
samba-7359a2221937f6ff8a70db08ba8fc299e0adb738.zip
s4-torture: mark s4 as doing valid lock range tests on SMB
-rw-r--r--source4/torture/raw/lock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/raw/lock.c b/source4/torture/raw/lock.c
index 0228837add..8b49df5de5 100644
--- a/source4/torture/raw/lock.c
+++ b/source4/torture/raw/lock.c
@@ -72,6 +72,7 @@
#define TARGET_IS_W2K8(_tctx) (torture_setting_bool(_tctx, "w2k8", false))
#define TARGET_IS_WIN7(_tctx) (torture_setting_bool(_tctx, "win7", false))
#define TARGET_IS_SAMBA3(_tctx) (torture_setting_bool(_tctx, "samba3", false))
+#define TARGET_IS_SAMBA4(_tctx) (torture_setting_bool(_tctx, "samba4", false))
/*
test SMBlock and SMBunlock ops
@@ -365,7 +366,7 @@ static bool test_lockx(struct torture_context *tctx, struct smbcli_state *cli)
lock[0].pid++;
lock[0].count = 2;
status = smb_raw_lock(cli->tree, &io);
- if (TARGET_IS_WIN7(tctx))
+ if (TARGET_IS_WIN7(tctx) || TARGET_IS_SAMBA4(tctx))
CHECK_STATUS(status, NT_STATUS_INVALID_LOCK_RANGE);
else
CHECK_STATUS(status, NT_STATUS_OK);