From: Michael Adam Date: Wed, 8 Aug 2012 09:55:46 +0000 (+0200) Subject: s3:torture:delete: untangle function call from result check X-Git-Tag: samba-4.0.0beta6~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=361429d02ffc1ce90cf5b5e246d2fc0bb765520b;p=thirdparty%2Fsamba.git s3:torture:delete: untangle function call from result check --- diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 1dddf3b1e61..692ae675a4e 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -3885,7 +3885,8 @@ static bool run_deletetest(int dummy) goto fail; } - if (NT_STATUS_IS_OK(cli_openx(cli1, fname, O_RDWR, DENY_NONE, &fnum1))) { + status = cli_openx(cli1, fname, O_RDWR, DENY_NONE, &fnum1); + if (NT_STATUS_IS_OK(status)) { printf("[1] open of %s succeeded (should fail)\n", fname); correct = False; goto fail;