This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new dc3cc8875 testing/ostest: use STACKSIZE for the wqueue test worker 
threads
dc3cc8875 is described below

commit dc3cc88758461d795fd2679aa317810606ddc606
Author: raiden00pl <[email protected]>
AuthorDate: Wed Sep 2 16:29:42 2026 +0200

    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 <[email protected]>
---
 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 9d0444a96..29c3271fd 100644
--- a/testing/ostest/wqueue.c
+++ b/testing/ostest/wqueue.c
@@ -35,6 +35,8 @@
 
 #include <nuttx/wqueue.h>
 
+#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);

Reply via email to