]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: torture: In test_mask(), use torture_deltree() for setup.
authorJeremy Allison <jra@samba.org>
Thu, 2 Dec 2021 22:20:07 +0000 (14:20 -0800)
committerRalph Boehme <slow@samba.org>
Thu, 9 Dec 2021 18:06:35 +0000 (18:06 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/torture/masktest.c

index ebd156167cd393fc556e75f4688d71322147aaf1..d7485cfb5eb801bf5dbe1e9899a3db91747e2708 100644 (file)
@@ -355,10 +355,9 @@ static void test_mask(int argc, char *argv[],
        int fc_len = strlen(filechars);
        TALLOC_CTX *ctx = talloc_tos();
 
+       torture_deltree(cli, "\\masktest");
        cli_mkdir(cli, "\\masktest");
 
-       cli_unlink(cli, "\\masktest\\*", FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN);
-
        if (argc >= 2) {
                while (argc >= 2) {
                        mask = talloc_asprintf(ctx,