diff options
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/mangle_test.c | 2 | ||||
-rw-r--r-- | source3/torture/nbio.c | 2 | ||||
-rw-r--r-- | source3/torture/torture.c | 2 |
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)) |