From 09b5bc893f67ee74ab72850bd87c78cc2598d670 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Wed, 2 Sep 2026 16:29:42 +0200 Subject: [PATCH] testing/ostest: use STACKSIZE for the wqueue test worker threads Size the worker stacks with STACKSIZE like the rest of ostest. Signed-off-by: raiden00pl --- testing/ostest/wqueue.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testing/ostest/wqueue.c b/testing/ostest/wqueue.c index 9d0444a968b..29c3271fd7c 100644 --- a/testing/ostest/wqueue.c +++ b/testing/ostest/wqueue.c @@ -35,6 +35,8 @@ #include +#include "ostest.h" + #ifdef CONFIG_SCHED_WORKQUEUE /**************************************************************************** @@ -64,6 +66,7 @@ static void empty_worker(FAR void *arg) static void sleep_worker(FAR void *arg) { FAR sem_t *sem = arg; + usleep(SLEEP_TIME); sem_post(sem); } @@ -71,6 +74,7 @@ static void sleep_worker(FAR void *arg) static void count_worker(FAR void *arg) { FAR sem_t *sem = arg; + sem_post(sem); } @@ -290,7 +294,7 @@ void wqueue_test(void) for (i = 1; i < 3; i++) { printf("wqueue_test: test %d\n", i); - wq = work_queue_create("test", 100, NULL, 2048, i); + wq = work_queue_create("test", 100, NULL, STACKSIZE, i); DEBUGASSERT(wq != NULL); wqueue_priority_test(0, wq, 100); work_queue_free(wq);