summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-08-08 11:55:46 +0200
committerMichael Adam <obnox@samba.org>2012-08-09 15:25:18 +0200
commit361429d02ffc1ce90cf5b5e246d2fc0bb765520b (patch)
treef483e16531da6bd5f39aa26ad440eb7f2cdce646 /source3/torture
parent86845064784bf6111049f8991b2385783645b9e4 (diff)
downloadsamba-361429d02ffc1ce90cf5b5e246d2fc0bb765520b.tar.gz
samba-361429d02ffc1ce90cf5b5e246d2fc0bb765520b.tar.bz2
samba-361429d02ffc1ce90cf5b5e246d2fc0bb765520b.zip
s3:torture:delete: untangle function call from result check
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 1dddf3b1e6..692ae675a4 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -3885,7 +3885,8 @@ static bool run_deletetest(int dummy)
goto fail;
}
- if (NT_STATUS_IS_OK(cli_openx(cli1, fname, O_RDWR, DENY_NONE, &fnum1))) {
+ status = cli_openx(cli1, fname, O_RDWR, DENY_NONE, &fnum1);
+ if (NT_STATUS_IS_OK(status)) {
printf("[1] open of %s succeeded (should fail)\n", fname);
correct = False;
goto fail;