summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-03-11 06:31:23 +0000
committerAndrew Tridgell <tridge@samba.org>2003-03-11 06:31:23 +0000
commitc13990277f1ab2e6810ada193caa720f6e71f087 (patch)
tree17c06ecdc98704869a89aa0128d5fb21b79c71ab /source3/torture
parentcca61adcd242b96a1cf3c3b6528fd23a4998c2c3 (diff)
downloadsamba-c13990277f1ab2e6810ada193caa720f6e71f087.tar.gz
samba-c13990277f1ab2e6810ada193caa720f6e71f087.tar.bz2
samba-c13990277f1ab2e6810ada193caa720f6e71f087.zip
make sure we have an empty directory when we start the utable test
(This used to be commit af415842b80f024ca26b4e3bc52fd73fce0a28f3)
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/utable.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/torture/utable.c b/source3/torture/utable.c
index d9c1fcbafd..d8a1557dbb 100644
--- a/source3/torture/utable.c
+++ b/source3/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;