svn commit: samba r15016 - in branches/SAMBA_4_0/source/torture/raw: .

tridge at samba.org tridge at samba.org
Mon Apr 10 06:06:27 GMT 2006


Author: tridge
Date: 2006-04-10 06:06:26 +0000 (Mon, 10 Apr 2006)
New Revision: 15016

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15016

Log:

add a test for a 2nd open with an exclusive oplock. It does not cause
a break, as exclusive oplocks don't cache close requests

Modified:
   branches/SAMBA_4_0/source/torture/raw/oplock.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/oplock.c
===================================================================
--- branches/SAMBA_4_0/source/torture/raw/oplock.c	2006-04-10 05:12:49 UTC (rev 15015)
+++ branches/SAMBA_4_0/source/torture/raw/oplock.c	2006-04-10 06:06:26 UTC (rev 15016)
@@ -146,7 +146,13 @@
 	fnum = io.ntcreatex.out.file.fnum;
 	CHECK_VAL(io.ntcreatex.out.oplock_level, EXCLUSIVE_OPLOCK_RETURN);
 
-	printf("unlink it - should be no break\n");
+	printf("a 2nd open should not cause a break\n");
+	status = smb_raw_open(cli->tree, mem_ctx, &io);
+	CHECK_STATUS(status, NT_STATUS_SHARING_VIOLATION);
+	CHECK_VAL(break_info.count, 0);
+	CHECK_VAL(break_info.failures, 0);
+
+	printf("unlink it - should also be no break\n");
 	unl.unlink.in.pattern = fname;
 	unl.unlink.in.attrib = 0;
 	status = smb_raw_unlink(cli->tree, &unl);



More information about the samba-cvs mailing list