From 4971a0a2bc5cc75d0142829d0fc16f1f2a06af17 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 23 Jul 2011 09:10:09 +0200 Subject: s3-torture: run_locktest7(): goto fail on read error Signed-off-by: Stefan Metzmacher --- source3/torture/torture.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index c2bc6d2481..f9d4628e8b 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -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"); } -- cgit