diff options
Diffstat (limited to 'source4/torture/raw/unlink.c')
-rw-r--r-- | source4/torture/raw/unlink.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/torture/raw/unlink.c b/source4/torture/raw/unlink.c index 40ab137fa0..d9c7ac6dfa 100644 --- a/source4/torture/raw/unlink.c +++ b/source4/torture/raw/unlink.c @@ -40,9 +40,7 @@ static BOOL test_unlink(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) BOOL ret = True; const char *fname = BASEDIR "\\test.txt"; - if (smbcli_deltree(cli->tree, BASEDIR) == -1 || - NT_STATUS_IS_ERR(smbcli_mkdir(cli->tree, BASEDIR))) { - printf("Unable to setup %s - %s\n", BASEDIR, smbcli_errstr(cli->tree)); + if (!torture_setup_dir(cli, BASEDIR)) { return False; } |