From: Michael Adam Date: Wed, 8 Aug 2012 10:18:55 +0000 (+0200) Subject: s3:torture:delete: untangle function call from result check X-Git-Tag: samba-4.0.0beta6~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef3684739a5bf65f70d35f2fdbc83b93cefd1608;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 bb0f1bbfce5..e3f77676f9a 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -4279,7 +4279,8 @@ static bool run_deletetest(int dummy) } /* This should fail.. */ - if (NT_STATUS_IS_OK(cli_openx(cli1, fname, O_RDONLY, DENY_NONE, &fnum1))) { + status = cli_openx(cli1, fname, O_RDONLY, DENY_NONE, &fnum1); + if (NT_STATUS_IS_OK(status)) { printf("[10] open of %s succeeded should have been deleted on close !\n", fname); goto fail; correct = False;