summaryrefslogtreecommitdiffstats
path: root/source3/torture
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-08-08 12:18:16 +0200
committerMichael Adam <obnox@samba.org>2012-08-09 15:27:16 +0200
commit4e75b0c717506b0cb392083f6ff07d581a9cf6eb (patch)
tree4fd870e166ff79633738c3646e4274e74ef65baf /source3/torture
parentccb25831e21fef606683abc5d62581272ac8ffa4 (diff)
downloadsamba-4e75b0c717506b0cb392083f6ff07d581a9cf6eb.tar.gz
samba-4e75b0c717506b0cb392083f6ff07d581a9cf6eb.tar.xz
samba-4e75b0c717506b0cb392083f6ff07d581a9cf6eb.zip
s3:torture:delete: untangle function call from result check
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 1ba915a853..bb0f1bbfce 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -4246,8 +4246,12 @@ static bool run_deletetest(int dummy)
printf("eighth delete on close test succeeded.\n");
/* This should fail - we need to set DELETE_ACCESS. */
- if (NT_STATUS_IS_OK(cli_ntcreate(cli1, fname, 0,FILE_READ_DATA|FILE_WRITE_DATA,
- FILE_ATTRIBUTE_NORMAL, FILE_SHARE_NONE, FILE_OVERWRITE_IF, FILE_DELETE_ON_CLOSE, 0, &fnum1))) {
+ status = cli_ntcreate(cli1, fname, 0, FILE_READ_DATA|FILE_WRITE_DATA,
+ FILE_ATTRIBUTE_NORMAL,
+ FILE_SHARE_NONE,
+ FILE_OVERWRITE_IF,
+ FILE_DELETE_ON_CLOSE, 0, &fnum1);
+ if (NT_STATUS_IS_OK(status)) {
printf("[9] open of %s succeeded should have failed!\n", fname);
correct = False;
goto fail;