]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture/smb2: let max_async_credits tests start the loop only when everything...
authorStefan Metzmacher <metze@samba.org>
Mon, 26 May 2025 10:21:08 +0000 (12:21 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 18 Jun 2025 17:52:37 +0000 (17:52 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source4/torture/smb2/credits.c

index d43802730a8c70ea4fdd8432493bd7720aa27671..1ab1cfc72c92339e90fb9917d7ac20ea52d0d714 100644 (file)
@@ -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,