mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
s3: torture: In run_smb1_wild_mangle_unlink_test() use torture_deltree() for setup and cleanup.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
a0bfb37b4b
commit
3a73178fe4
@ -12858,10 +12858,7 @@ static bool run_smb1_wild_mangle_unlink_test(int dummy)
|
||||
}
|
||||
|
||||
/* Start fresh. */
|
||||
cli_unlink(cli,
|
||||
star_name,
|
||||
FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN);
|
||||
cli_rmdir(cli, dname);
|
||||
torture_deltree(cli, dname);
|
||||
|
||||
/*
|
||||
* Create two files - 'a' and '*'.
|
||||
@ -12971,10 +12968,7 @@ static bool run_smb1_wild_mangle_unlink_test(int dummy)
|
||||
TALLOC_FREE(mangled_name);
|
||||
|
||||
if (cli != NULL) {
|
||||
cli_unlink(cli,
|
||||
star_name,
|
||||
FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN);
|
||||
cli_rmdir(cli, dname);
|
||||
torture_deltree(cli, dname);
|
||||
torture_close_connection(cli);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user