From 5b1afa63073155eab7035b7f7a5cf1fc1f62dc3d Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 8 Aug 2012 11:32:55 +0200 Subject: [PATCH] s3:torture:delete: move the success message for a subtest to the correct place --- source3/torture/torture.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 243a8a7f44b..2d618de9386 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -4060,8 +4060,7 @@ static bool run_deletetest(int dummy) printf("[4] open - 3 of %s succeeded ! Should have failed.\n", fname ); correct = False; goto fail; - } else - printf("fourth delete on close test succeeded.\n"); + } status = cli_close(cli1, fnum1); if (!NT_STATUS_IS_OK(status)) { @@ -4070,6 +4069,8 @@ static bool run_deletetest(int dummy) goto fail; } + printf("fourth delete on close test succeeded.\n"); + /* Test 5 ... */ cli_setatr(cli1, fname, 0, 0); cli_unlink(cli1, fname, FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN); -- 2.11.4.GIT