From 485cf5654d33d540bb57c3c481295ac90d06dadc Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 20 Aug 2014 23:46:32 +0200 Subject: [PATCH] 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 Reviewed-by: Stefan Metzmacher --- source4/torture/basic/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/torture/basic/base.c b/source4/torture/basic/base.c index 3789081cb0d..c7a7d8dc321 100644 --- a/source4/torture/basic/base.c +++ b/source4/torture/basic/base.c @@ -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))) { -- 2.11.4.GIT