summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-08-08 11:32:37 +0200
committerMichael Adam <obnox@samba.org>2012-08-09 15:25:17 +0200
commit86845064784bf6111049f8991b2385783645b9e4 (patch)
tree4e8abd889a1dc26bddd3a11c4ad5720b3e3e7bac
parent1db70c0b8b032bb3b5c544c6714a270e170aa201 (diff)
downloadsamba-86845064784bf6111049f8991b2385783645b9e4.tar.gz
samba-86845064784bf6111049f8991b2385783645b9e4.tar.bz2
samba-86845064784bf6111049f8991b2385783645b9e4.zip
s3:torture:delete: untangle function call from result check
-rw-r--r--source3/torture/torture.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 6ba228460f..1dddf3b1e6 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -4048,9 +4048,11 @@ static bool run_deletetest(int dummy)
}
/* This should fail - no more opens once delete on close set. */
- if (NT_STATUS_IS_OK(cli_ntcreate(cli1, fname, 0, GENERIC_READ_ACCESS,
- FILE_ATTRIBUTE_NORMAL, FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE,
- FILE_OPEN, 0, 0, &fnum2))) {
+ status = cli_ntcreate(cli1, fname, 0, GENERIC_READ_ACCESS,
+ FILE_ATTRIBUTE_NORMAL,
+ FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE,
+ FILE_OPEN, 0, 0, &fnum2);
+ if (NT_STATUS_IS_OK(status)) {
printf("[4] open - 3 of %s succeeded ! Should have failed.\n", fname );
correct = False;
goto fail;