From 361429d02ffc1ce90cf5b5e246d2fc0bb765520b Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 8 Aug 2012 11:55:46 +0200 Subject: [PATCH] s3:torture:delete: untangle function call from result check --- source3/torture/torture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.11.4.GIT