s3:torture:delete: move the success message for a subtest to the correct place
authorMichael Adam <obnox@samba.org>
Wed, 8 Aug 2012 09:32:55 +0000 (11:32 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 9 Aug 2012 13:29:45 +0000 (15:29 +0200)
source3/torture/torture.c

index 243a8a7f44b168a7b85b5ae33c80dae763d5aeb9..2d618de9386e2b555a888005c74072128b2f39d6 100644 (file)
@@ -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);