From: Stefan Metzmacher Date: Mon, 26 May 2025 10:21:08 +0000 (+0200) Subject: s4:torture/smb2: let max_async_credits tests start the loop only when everything... X-Git-Tag: tdb-1.4.14~216 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fff20f4ea6417a763a2e3a2bf4e1c71d0fd6b614;p=thirdparty%2Fsamba.git s4:torture/smb2: let max_async_credits tests start the loop only when everything is ready Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke --- diff --git a/source4/torture/smb2/credits.c b/source4/torture/smb2/credits.c index d43802730a8..1ab1cfc72c9 100644 --- a/source4/torture/smb2/credits.c +++ b/source4/torture/smb2/credits.c @@ -571,6 +571,15 @@ static bool test_ipc_max_async_credits(struct torture_context *tctx, ok, out, "FSCTL_NAMED_PIPE_READ_WRITE failed"); + } + } + + for (i = 0; i < num_loops; i++) { + for (t = 0; t < num_trees; t++) { + struct test_ipc_async_credits_state + *state = states[t]; + struct test_ipc_async_credits_loop + *loop = &state->loops[i]; tevent_schedule_immediate( loop->im, @@ -1232,6 +1241,15 @@ static bool test_notify_max_async_credits(struct torture_context *tctx, NULL); /* psymlink */ torture_assert_ntstatus_ok_goto( tctx, status, ok, out, "smb2cli_create failed"); + } + } + + for (i = 0; i < num_loops; i++) { + for (t = 0; t < num_trees; t++) { + struct test_notify_async_credit_state + *state = states[t]; + struct test_notify_async_credit_loop + *loop = &state->loops[i]; tevent_schedule_immediate(loop->im, tctx->ev,