summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-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");