diff options
Diffstat (limited to 'source4/torture/basic/utable.c')
-rw-r--r-- | source4/torture/basic/utable.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source4/torture/basic/utable.c b/source4/torture/basic/utable.c index c09ef576a5..30d389dd92 100644 --- a/source4/torture/basic/utable.c +++ b/source4/torture/basic/utable.c @@ -42,8 +42,9 @@ BOOL torture_utable(void) memset(valid, 0, sizeof(valid)); - smbcli_mkdir(cli->tree, "\\utable"); - smbcli_unlink(cli->tree, "\\utable\\*"); + if (!torture_setup_dir(cli, "\\utable")) { + return False; + } for (c=1; c < 0x10000; c++) { char *p; @@ -133,9 +134,7 @@ BOOL torture_casetable(void) memset(equiv, 0, sizeof(equiv)); - smbcli_deltree(cli->tree, "\\utable"); - if (NT_STATUS_IS_ERR(smbcli_mkdir(cli->tree, "\\utable"))) { - printf("Failed to create utable directory!\n"); + if (!torture_setup_dir(cli, "\\utable")) { return False; } |