summaryrefslogtreecommitdiff
path: root/source4/torture/smbtorture.c
diff options
context:
space:
mode:
authorSteven Danneman <steven.danneman@isilon.com>2009-11-13 15:13:19 -0800
committerSteven Danneman <steven.danneman@isilon.com>2009-11-17 17:06:26 -0800
commitc14b0cea488f78fc2fb88646d0cc674c6154c008 (patch)
tree810a9fddd027eb5d8994ed28cc7cb9b31c565892 /source4/torture/smbtorture.c
parent7407b526e3214287a8f42073044e2ebab058198a (diff)
downloadsamba-c14b0cea488f78fc2fb88646d0cc674c6154c008.tar.gz
samba-c14b0cea488f78fc2fb88646d0cc674c6154c008.tar.bz2
samba-c14b0cea488f78fc2fb88646d0cc674c6154c008.zip
torture/smb2: make SMB2 BRL tests pass against W2K8R2
The BRL tests previously based their results off several bugs in the W2K8 byte range lock code. I've fixed up the tests to pass against Win7 which has fixed these bugs, and assume that the Win7 behavior is the default. I have inverted the test behavior for >63-bit lock requests. The tests previously expected NT_STATUS_OK as their default in this case. I've changed that default to expect STATUS_INVALID_LOCK_RANGE. This may requires some changing of make test to compensate. I've also removed a few test scenarios from VALID-REQUEST in preparation of replacing them with separate tests ported from RAW-LOCK.
Diffstat (limited to 'source4/torture/smbtorture.c')
-rw-r--r--source4/torture/smbtorture.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c
index efb92d28a1..f8bb6e3daa 100644
--- a/source4/torture/smbtorture.c
+++ b/source4/torture/smbtorture.c
@@ -527,6 +527,8 @@ int main(int argc,char *argv[])
lp_set_cmdline(cmdline_lp_ctx, "torture:samba4", "true");
} else if (strcmp(target, "w2k8") == 0) {
lp_set_cmdline(cmdline_lp_ctx, "torture:w2k8", "true");
+ lp_set_cmdline(cmdline_lp_ctx,
+ "torture:invalid_lock_range_support", "false");
} else if (strcmp(target, "win7") == 0) {
lp_set_cmdline(cmdline_lp_ctx, "torture:win7", "true");
} else if (strcmp(target, "onefs") == 0) {