diff options
-rw-r--r-- | source4/torture/basic/unlink.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/torture/basic/unlink.c b/source4/torture/basic/unlink.c index 75d1549fcf..30d862e345 100644 --- a/source4/torture/basic/unlink.c +++ b/source4/torture/basic/unlink.c @@ -24,6 +24,8 @@ #include "libcli/raw/libcliraw.h" #include "librpc/gen_ndr/ndr_security.h" +#define BASEDIR "\\unlinktest" + /* This test checks that @@ -32,7 +34,7 @@ BOOL torture_unlinktest(void) { struct smbcli_state *cli; - const char *fname = "\\unlink.tst"; + const char *fname = BASEDIR "\\unlink.tst"; int fnum; BOOL correct = True; union smb_open io; @@ -44,7 +46,9 @@ BOOL torture_unlinktest(void) printf("starting unlink test\n"); - smbcli_unlink(cli->tree, fname); + if (!torture_setup_dir(cli, BASEDIR)) { + return False; + } cli->session->pid = 1; |