summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-08-08 12:14:36 +0200
committerMichael Adam <obnox@samba.org>2012-08-09 15:29:39 +0200
commite8331416229fc08e5c73cdd27e192b8b3f68bbfe (patch)
tree7626a5d1e4f72a8e1e0c6fc5aded38e1b06dc7ff
parent9058288d6a9ddf7472711d4e3fe51c704c4f0144 (diff)
downloadsamba-e8331416229fc08e5c73cdd27e192b8b3f68bbfe.tar.gz
samba-e8331416229fc08e5c73cdd27e192b8b3f68bbfe.tar.bz2
samba-e8331416229fc08e5c73cdd27e192b8b3f68bbfe.zip
s3:torture:delete: really fail the test in a failure case
-rw-r--r--source3/torture/torture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 58b41593e2..31318c622f 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -3928,10 +3928,10 @@ static bool run_deletetest(int dummy)
status = cli_close(cli1, fnum1);
if (!NT_STATUS_IS_OK(status)) {
printf("[2] close failed (%s)\n", nt_errstr(status));
- correct = False;
- goto fail;
}
cli_unlink(cli1, fname, FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN);
+ correct = False;
+ goto fail;
} else
printf("second delete on close test succeeded.\n");