1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s3:torture:delete: untangle function call from result check

This commit is contained in:
Michael Adam 2012-08-08 20:07:38 +02:00
parent ef3684739a
commit 2aded6aebd

View File

@ -3922,7 +3922,8 @@ static bool run_deletetest(int dummy)
goto fail;
}
if (NT_STATUS_IS_OK(cli_openx(cli1, fname, O_RDONLY, DENY_NONE, &fnum1))) {
status = cli_openx(cli1, fname, O_RDONLY, DENY_NONE, &fnum1);
if (NT_STATUS_IS_OK(status)) {
printf("[2] open of %s succeeded should have been deleted on close !\n", fname);
status = cli_close(cli1, fnum1);
if (!NT_STATUS_IS_OK(status)) {