torture/smb2: make SMB2 BRL tests pass against W2K8R2
commitc14b0cea488f78fc2fb88646d0cc674c6154c008
authorSteven Danneman <steven.danneman@isilon.com>
Fri, 13 Nov 2009 23:13:19 +0000 (13 15:13 -0800)
committerSteven Danneman <steven.danneman@isilon.com>
Wed, 18 Nov 2009 01:06:26 +0000 (17 17:06 -0800)
tree810a9fddd027eb5d8994ed28cc7cb9b31c565892
parent7407b526e3214287a8f42073044e2ebab058198a
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.
source4/torture/smb2/lock.c
source4/torture/smbtorture.c
source4/torture/smbtorture.h