summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-05-18 09:29:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:05 -0500
commitbd0fb90162c9788d3e8ed56a25b3902cf43eef25 (patch)
tree76e7ed5aaa1aaee027da791efd65dc78b66cfc59
parent47afa694963830fab50b207cbf2b6589b3ef84df (diff)
downloadsamba-bd0fb90162c9788d3e8ed56a25b3902cf43eef25.tar.gz
samba-bd0fb90162c9788d3e8ed56a25b3902cf43eef25.tar.bz2
samba-bd0fb90162c9788d3e8ed56a25b3902cf43eef25.zip
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)
-rw-r--r--source4/torture/raw/read.c7
1 files changed, 6 insertions, 1 deletions
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");