git.samba.org
/
mdw
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a70a4ad
)
s3:torture:delete: untangle function call from result check
author
Michael Adam
<obnox@samba.org>
Wed, 8 Aug 2012 09:27:19 +0000
(11:27 +0200)
committer
Michael Adam
<obnox@samba.org>
Thu, 9 Aug 2012 13:25:16 +0000
(15:25 +0200)
source3/torture/torture.c
patch
|
blob
|
history
diff --git
a/source3/torture/torture.c
b/source3/torture/torture.c
index fb0da0281aed35981af2db68a732c465352ce7c4..6ba228460f72e0344399f8e33715895a04dcc5dd 100644
(file)
--- a/
source3/torture/torture.c
+++ b/
source3/torture/torture.c
@@
-3994,7
+3994,8
@@
static bool run_deletetest(int dummy)
/* This should fail - file should no longer be there. */
- if (NT_STATUS_IS_OK(cli_openx(cli1, fname, O_RDONLY, DENY_NONE, &fnum1))) {
+ status = cli_openx(cli1, fname, O_RDONLY, DENY_NONE, &fnum1);
+ if (NT_STATUS_IS_OK(status)) {
printf("[3] open of %s succeeded should have been deleted on close !\n", fname);
status = cli_close(cli1, fnum1);
if (!NT_STATUS_IS_OK(status)) {