Cause cli_close to return an NTSTATUS.
[jra/samba/.git] / source3 / torture / mangle_test.c
index 6ea6c5732c686822e1a24dd636b86bba04d3aeef..34c908e64239033691b427d3663e6ae1e52ae842 100644 (file)
@@ -42,7 +42,7 @@ static bool test_one(struct cli_state *cli, const char *name)
                return False;
        }
 
-       if (!cli_close(cli, fnum)) {
+       if (!NT_STATUS_IS_OK(cli_close(cli, fnum))) {
                printf("close of %s failed (%s)\n", name, cli_errstr(cli));
                return False;
        }
@@ -66,7 +66,7 @@ static bool test_one(struct cli_state *cli, const char *name)
                printf("open2 of %s failed (%s)\n", name2, cli_errstr(cli));
                return False;
        }
-       if (!cli_close(cli, fnum)) {
+       if (!NT_STATUS_IS_OK(cli_close(cli, fnum))) {
                printf("close of %s failed (%s)\n", name, cli_errstr(cli));
                return False;
        }