s3-torture: run_locktest7(): goto fail on read error
authorStefan Metzmacher <metze@samba.org>
Sat, 23 Jul 2011 07:10:09 +0000 (09:10 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 23 Jul 2011 07:10:09 +0000 (09:10 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/torture/torture.c

index c2bc6d24812f4ec2c1da844526e3e52b71748cbc..f9d4628e8bc0c062c9546fc0ca0efedae85d3d63 100644 (file)
@@ -2358,6 +2358,7 @@ static bool run_locktest7(int dummy)
 
        if (cli_read_old(cli1, fnum1, buf, 130, 4) != 4) {
                printf("pid2 unable to read the range 130:4, error was %s\n", cli_errstr(cli1));
+               goto fail;
        } else {
                printf("pid2 successfully read the range 130:4\n");
        }