summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index dcaa905ed7..f6331a01f8 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -4333,16 +4333,14 @@ static bool run_deletetest(int dummy)
cli_close(cli1, fnum1);
goto fail;
correct = False;
- } else {
- if (!NT_STATUS_EQUAL(status, NT_STATUS_ACCESS_DENIED)) {
- printf("[11] open of %s should have been denied with ACCESS_DENIED! Got error %s\n", fname, nt_errstr(status));
- goto fail;
- correct = False;
- } else {
- printf("eleventh delete on close test succeeded.\n");
- }
+ } else if (!NT_STATUS_EQUAL(status, NT_STATUS_ACCESS_DENIED)) {
+ printf("[11] open of %s should have been denied with ACCESS_DENIED! Got error %s\n", fname, nt_errstr(status));
+ goto fail;
+ correct = False;
}
+ printf("eleventh delete on close test succeeded.\n");
+
printf("finished delete test\n");
fail: