From: Michael Adam Date: Wed, 8 Aug 2012 18:07:38 +0000 (+0200) Subject: s3:torture:delete: untangle function call from result check X-Git-Tag: samba-4.0.0beta6~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2aded6aebd4187cd192f9202b35dfef6d258f2da;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 e3f77676f9a..0b6f5100a06 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -3922,7 +3922,8 @@ static bool run_deletetest(int dummy) goto 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("[2] open of %s succeeded should have been deleted on close !\n", fname); status = cli_close(cli1, fnum1); if (!NT_STATUS_IS_OK(status)) {