From a70a4ad73142600d8033e9d427b24c3452a56432 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 8 Aug 2012 11:24:29 +0200 Subject: s3:torture:delete: untangle function call from result check --- source3/torture/torture.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 306bca1237..fb0da0281a 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -3950,8 +3950,11 @@ static bool run_deletetest(int dummy) /* This should fail with a sharing violation - open for delete is only compatible with SHARE_DELETE. */ - if (NT_STATUS_IS_OK(cli_ntcreate(cli1, fname, 0, GENERIC_READ_ACCESS, FILE_ATTRIBUTE_NORMAL, - FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OPEN, 0, 0, &fnum2))) { + status = cli_ntcreate(cli1, fname, 0, GENERIC_READ_ACCESS, + FILE_ATTRIBUTE_NORMAL, + FILE_SHARE_READ|FILE_SHARE_WRITE, + FILE_OPEN, 0, 0, &fnum2); + if (NT_STATUS_IS_OK(status)) { printf("[3] open - 2 of %s succeeded - should have failed.\n", fname); correct = False; goto fail; -- cgit