From: Michael Adam Date: Wed, 8 Aug 2012 10:14:36 +0000 (+0200) Subject: s3:torture:delete: really fail the test in a failure case X-Git-Tag: samba-4.0.0beta6~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8331416229fc08e5c73cdd27e192b8b3f68bbfe;p=thirdparty%2Fsamba.git s3:torture:delete: really fail the test in a failure case --- diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 58b41593e25..31318c622fe 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -3928,10 +3928,10 @@ static bool run_deletetest(int dummy) status = cli_close(cli1, fnum1); if (!NT_STATUS_IS_OK(status)) { printf("[2] close failed (%s)\n", nt_errstr(status)); - correct = False; - goto fail; } cli_unlink(cli1, fname, FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN); + correct = False; + goto fail; } else printf("second delete on close test succeeded.\n");