summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-04-21 06:52:54 -0700
committerJeremy Allison <jra@samba.org>2009-04-21 06:52:54 -0700
commit5ccf58ff598cc25a64cd222d0ad593f373eacf76 (patch)
tree9f439e147a87f5ecabd5d9920bedafc69f68185e /source3/torture
parent4eb557bf258f2fcc771be130763634910f2a60d2 (diff)
downloadsamba-5ccf58ff598cc25a64cd222d0ad593f373eacf76.tar.gz
samba-5ccf58ff598cc25a64cd222d0ad593f373eacf76.tar.bz2
samba-5ccf58ff598cc25a64cd222d0ad593f373eacf76.zip
Make rmdir async.
Jeremy.
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/mangle_test.c2
-rw-r--r--source3/torture/nbio.c2
-rw-r--r--source3/torture/torture.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/torture/mangle_test.c b/source3/torture/mangle_test.c
index 525a1eb3c3..81bdbce04d 100644
--- a/source3/torture/mangle_test.c
+++ b/source3/torture/mangle_test.c
@@ -202,7 +202,7 @@ bool torture_mangle(int dummy)
}
cli_unlink(cli, "\\mangle_test\\*");
- if (!cli_rmdir(cli, "\\mangle_test")) {
+ if (!NT_STATUS_IS_OK(cli_rmdir(cli, "\\mangle_test"))) {
printf("ERROR: Failed to remove directory\n");
return False;
}
diff --git a/source3/torture/nbio.c b/source3/torture/nbio.c
index a010c80985..998adac4e0 100644
--- a/source3/torture/nbio.c
+++ b/source3/torture/nbio.c
@@ -220,7 +220,7 @@ void nb_close(int handle)
void nb_rmdir(const char *fname)
{
- if (!cli_rmdir(c, fname)) {
+ if (!NT_STATUS_IS_OK(cli_rmdir(c, fname))) {
printf("ERROR: rmdir %s failed (%s)\n",
fname, cli_errstr(c));
exit(1);
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 0328cfe545..7e2b3a56e5 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -4500,7 +4500,7 @@ static void del_fn(const char *mnt, file_info *finfo, const char *mask, void *st
return;
if (finfo->mode & aDIR) {
- if (!cli_rmdir(pcli, fname))
+ if (!NT_STATUS_IS_OK(cli_rmdir(pcli, fname)))
printf("del_fn: failed to rmdir %s\n,", fname );
} else {
if (!cli_unlink(pcli, fname))