summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-08-08 11:24:29 +0200
committerMichael Adam <obnox@samba.org>2012-08-09 15:13:33 +0200
commita70a4ad73142600d8033e9d427b24c3452a56432 (patch)
treecf572aa7e5a485c0054d10c5459abcda2e7d9784 /source3/torture
parent11d60d13dc54ff154b2a7bb53e326ed2180d473c (diff)
downloadsamba-a70a4ad73142600d8033e9d427b24c3452a56432.tar.gz
samba-a70a4ad73142600d8033e9d427b24c3452a56432.tar.bz2
samba-a70a4ad73142600d8033e9d427b24c3452a56432.zip
s3:torture:delete: untangle function call from result check
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c7
1 files 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;