s4:torture: let raw.read accept larger reads than 0x10000
authorStefan Metzmacher <metze@samba.org>
Wed, 20 Mar 2013 07:49:20 +0000 (08:49 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 20 Mar 2013 20:53:20 +0000 (21:53 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Mar 20 21:53:20 CET 2013 on sn-devel-104

source4/torture/raw/read.c

index 5a5ffeeb4a1db35ff02b5c90632355a9c77886b3..59089bff429c4ded2e0528dda0da5d642fb76604 100644 (file)
@@ -524,8 +524,7 @@ static bool test_readx(struct torture_context *tctx, struct smbcli_state *cli)
        CHECK_STATUS(status, NT_STATUS_OK);
        CHECK_VALUE(io.readx.out.remaining, 0xFFFF);
        CHECK_VALUE(io.readx.out.compaction_mode, 0);
-       if (torture_setting_bool(tctx, "samba3", false) ||
-           torture_setting_bool(tctx, "samba4", false)) {
+       if (io.readx.out.nread == io.readx.in.maxcnt) {
                printf("SAMBA: large read extension\n");
                CHECK_VALUE(io.readx.out.nread, 80000);
        } else {
@@ -574,8 +573,7 @@ static bool test_readx(struct torture_context *tctx, struct smbcli_state *cli)
                io.readx.in.maxcnt = 0x10001;
                status = smb_raw_read(cli->tree, &io);
                CHECK_STATUS(status, NT_STATUS_OK);
-               if (torture_setting_bool(tctx, "samba3", false) ||
-                   torture_setting_bool(tctx, "samba4", false)) {
+               if (io.readx.out.nread == io.readx.in.maxcnt) {
                        printf("SAMBA: large read extension\n");
                        CHECK_VALUE(io.readx.out.nread, 0x10001);
                } else {