summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 49150c3521..ed041f7912 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -4224,7 +4224,7 @@ static bool run_simple_posix_open_test(int dummy)
}
/* Now unlink while open. */
- if (!cli_posix_unlink(cli1, fname)) {
+ if (!NT_STATUS_IS_OK(cli_posix_unlink(cli1, fname))) {
printf("POSIX unlink of %s failed (%s)\n", fname, cli_errstr(cli1));
goto out;
}
@@ -4241,7 +4241,7 @@ static bool run_simple_posix_open_test(int dummy)
goto out;
}
- if (!cli_posix_rmdir(cli1, dname)) {
+ if (!NT_STATUS_IS_OK(cli_posix_rmdir(cli1, dname))) {
printf("POSIX rmdir failed (%s)\n", cli_errstr(cli1));
goto out;
}