diff options
author | Michael Adam <obnox@samba.org> | 2014-08-20 23:46:32 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-09-10 10:49:10 +0200 |
commit | 485cf5654d33d540bb57c3c481295ac90d06dadc (patch) | |
tree | 0eac987f1694b83c45d04f1d52689757879c87cd | |
parent | 5629cfcd2e62bedbcbe35d33c83123cf0cd72fb7 (diff) | |
download | samba-485cf5654d33d540bb57c3c481295ac90d06dadc.tar.gz samba-485cf5654d33d540bb57c3c481295ac90d06dadc.tar.xz samba-485cf5654d33d540bb57c3c481295ac90d06dadc.zip |
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>
-rw-r--r-- | source4/torture/basic/base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/basic/base.c b/source4/torture/basic/base.c index 3789081cb0..c7a7d8dc32 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))) { |