mirror of
https://github.com/samba-team/samba.git
synced 2025-03-23 06:50:21 +03:00
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)
This commit is contained in:
parent
47afa69496
commit
bd0fb90162
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user