From 2aded6aebd4187cd192f9202b35dfef6d258f2da Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 8 Aug 2012 20:07:38 +0200 Subject: s3:torture:delete: untangle function call from result check --- source3/torture/torture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index e3f77676f9..0b6f5100a0 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)) { -- cgit