From: Michael Adam Date: Wed, 8 Aug 2012 09:56:17 +0000 (+0200) Subject: s3:torture:delete: untangle function call from result check X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=b5e9378e2881745a0145c74bfa5f2f17591ac99c;p=mdw%2Fsamba.git s3:torture:delete: untangle function call from result check --- diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 692ae675a4..aa034410f1 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -4080,7 +4080,8 @@ static bool run_deletetest(int dummy) /* This should fail - only allowed on NT opens with DELETE access. */ - if (NT_STATUS_IS_OK(cli_nt_delete_on_close(cli1, fnum1, true))) { + status = cli_nt_delete_on_close(cli1, fnum1, true); + if (NT_STATUS_IS_OK(status)) { printf("[5] setting delete_on_close on OpenX file succeeded - should fail !\n"); correct = False; goto fail;