diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-03-11 06:31:23 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-03-11 06:31:23 +0000 |
commit | af415842b80f024ca26b4e3bc52fd73fce0a28f3 (patch) | |
tree | c9ebd13a1f9d783cb15c123734796a89894da2a6 | |
parent | 71c8e90117f00f168416f2f35a1c25755e2d0ed4 (diff) | |
download | samba-af415842b80f024ca26b4e3bc52fd73fce0a28f3.tar.gz samba-af415842b80f024ca26b4e3bc52fd73fce0a28f3.tar.xz samba-af415842b80f024ca26b4e3bc52fd73fce0a28f3.zip |
make sure we have an empty directory when we start the utable test
-rw-r--r-- | source/torture/utable.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/torture/utable.c b/source/torture/utable.c index d9c1fcbafd1..d8a1557dbb7 100644 --- a/source/torture/utable.c +++ b/source/torture/utable.c @@ -129,8 +129,12 @@ BOOL torture_casetable(int dummy) memset(equiv, 0, sizeof(equiv)); - cli_mkdir(cli, "\\utable"); cli_unlink(cli, "\\utable\\*"); + cli_rmdir(cli, "\\utable"); + if (!cli_mkdir(cli, "\\utable")) { + printf("Failed to create utable directory!\n"); + return False; + } for (c=1; c < 0x10000; c++) { size_t size; |