From bd0fb90162c9788d3e8ed56a25b3902cf43eef25 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 18 May 2006 09:29:08 +0000 Subject: r15685: 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 (This used to be commit 856656739c8765f9591ff7982b8a708a34d4a1d1) --- source4/torture/raw/read.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source4/torture/raw') diff --git a/source4/torture/raw/read.c b/source4/torture/raw/read.c index 1be2503fa0..81955ecafa 100644 --- a/source4/torture/raw/read.c +++ b/source4/torture/raw/read.c @@ -475,7 +475,12 @@ static BOOL test_readx(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) 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"); -- cgit