summaryrefslogtreecommitdiff
path: root/source4/torture/raw
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-25 15:33:42 -0700
committerStefan Metzmacher <metze@samba.org>2013-10-23 11:49:05 +0200
commit96faaf6c1ed818fc0aadcb478e9f8b20568d7547 (patch)
tree3902e12e9fe03be21cca7d3abcda3b1c7ab1caa9 /source4/torture/raw
parent9890a6a36df98bae501845764a9579c9c75c5188 (diff)
downloadsamba-96faaf6c1ed818fc0aadcb478e9f8b20568d7547.tar.gz
samba-96faaf6c1ed818fc0aadcb478e9f8b20568d7547.tar.bz2
samba-96faaf6c1ed818fc0aadcb478e9f8b20568d7547.zip
torture: Check break level in raw.oplock.exclusive5
This is what Windows does in this case, we don't survive that. We break to LEVEL2 here. Fixes and more precise test to follow. We don't survive this anymore. Re-enable later. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/torture/raw')
-rw-r--r--source4/torture/raw/oplock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/torture/raw/oplock.c b/source4/torture/raw/oplock.c
index c0738e98d7..02b976ce60 100644
--- a/source4/torture/raw/oplock.c
+++ b/source4/torture/raw/oplock.c
@@ -638,6 +638,7 @@ static bool test_raw_oplock_exclusive5(struct torture_context *tctx, struct smbc
CHECK_VAL(io.ntcreatex.out.oplock_level, LEVEL_II_OPLOCK_RETURN);
torture_wait_for_oplock_break(tctx);
CHECK_VAL(break_info.count, get_break_level1_to_none_count(tctx));
+ CHECK_VAL(break_info.level, OPLOCK_BREAK_TO_NONE);
CHECK_VAL(break_info.failures, 0);
smbcli_close(cli1->tree, fnum);