From a986ad0add1ef78cdbc354753af819d34c4829be Mon Sep 17 00:00:00 2001 From: fy59 Date: Fri, 7 Aug 2026 07:38:08 +0200 Subject: [PATCH] test: add active-task assertions in head-of-line bypass scenario --- tests/test_task_queue.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_task_queue.c b/tests/test_task_queue.c index 366426c..056a7bb 100644 --- a/tests/test_task_queue.c +++ b/tests/test_task_queue.c @@ -361,6 +361,10 @@ run_test(void) CHECK(blocked.contract_seen); CHECK(bypass_log.count == 2); CHECK(lardon3d_resource_governor_reservation_count(governor) == 0); + Lardon3DTaskQueueSummary bypass_summary; + lardon3d_task_queue_snapshot(queue, NULL, 0, &bypass_summary); + CHECK(bypass_summary.running == 0); + CHECK(bypass_summary.pending == 0); lardon3d_task_queue_destroy(queue); CHECK(pthread_mutex_destroy(&bypass_log.mutex) == 0);