1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

s4:torture:base: move i++ down in loop in run_deferopen()

This is where it belongs, and it prepares
subsequent patches.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Michael Adam 2014-08-20 23:46:32 +02:00
parent 5629cfcd2e
commit 485cf5654d

View File

@ -696,7 +696,6 @@ static bool run_deferopen(struct torture_context *tctx, struct smbcli_state *cli
torture_comment(tctx, "pid %u: open %d\n", (unsigned)getpid(), i);
smb_msleep(10 * msec);
i++;
status = smbcli_close(cli->tree, fnum);
torture_assert(tctx, !NT_STATUS_IS_ERR(status),
@ -707,6 +706,8 @@ static bool run_deferopen(struct torture_context *tctx, struct smbcli_state *cli
smbcli_errstr(cli->tree)));
smb_msleep(2 * msec);
i++;
}
if (NT_STATUS_IS_ERR(smbcli_unlink(cli->tree, fname))) {