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

metze at samba.org metze at samba.org
Thu May 18 09:29:09 GMT 2006


Author: metze
Date: 2006-05-18 09:29:08 +0000 (Thu, 18 May 2006)
New Revision: 15685

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

Log:
let samba3 pass RAW-READ and ignore one bug

this demonstrates how the target:samba3=yes option
passed in samba3's make test can be used in samba4's smbtorture

metze
Modified:
   branches/SAMBA_4_0/source/torture/raw/read.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/read.c
===================================================================
--- branches/SAMBA_4_0/source/torture/raw/read.c	2006-05-18 09:22:57 UTC (rev 15684)
+++ branches/SAMBA_4_0/source/torture/raw/read.c	2006-05-18 09:29:08 UTC (rev 15685)
@@ -475,7 +475,12 @@
 	CHECK_STATUS(status, NT_STATUS_OK);
 	CHECK_VALUE(io.readx.out.remaining, 0xFFFF);
 	CHECK_VALUE(io.readx.out.compaction_mode, 0);
-	CHECK_VALUE(io.readx.out.nread, 0);
+	if (lp_parm_bool(-1, "target", "samba3", False)) {
+		printf("SAMBA3: ignore wrong nread[%d] should be [%d]\n",
+			io.readx.out.nread, 0);
+	} else {
+		CHECK_VALUE(io.readx.out.nread, 0);
+	}
 	CHECK_BUFFER(buf, seed, io.readx.out.nread);
 
 	printf("Trying mincnt > maxcnt\n");



More information about the samba-cvs mailing list