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

raiden00pl 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 74df79a53 testing/ostest: Restore the round-robin test defaults.
74df79a53 is described below

commit 74df79a539e87fae10744276088fe09b31b825dc
Author: Marco Casaroli <[email protected]>
AuthorDate: Sun Oct 11 08:58:13 2026 +0200

    testing/ostest: Restore the round-robin test defaults.
    
    This reverts commit 27ecdd789f3e985f68610ea39c0aa3dcd6000d93.
    
    rr_test records which thread finishes each run, and fails if the first
    CONFIG_TESTING_OSTEST_RR_RUNS runs all come from one thread.  With 4
    runs over a range of 10000, one thread on qemu-armv8a does all its
    runs within one time slice, before the other thread finishes a run,
    and the test stops with an assertion at roundrobin.c:281.  Since that
    change, ostest crashes on every qemu-armv8a configuration that CI
    tests (arm64-01).
    
    Restore 30000 and 10 runs.  A slow board can set
    CONFIG_TESTING_OSTEST_RR_RANGE and CONFIG_TESTING_OSTEST_RR_RUNS lower
    in its defconfig.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 testing/ostest/Kconfig      | 8 ++++----
 testing/ostest/roundrobin.c | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/testing/ostest/Kconfig b/testing/ostest/Kconfig
index 0317e2368..357382463 100644
--- a/testing/ostest/Kconfig
+++ b/testing/ostest/Kconfig
@@ -63,7 +63,7 @@ config TESTING_OSTEST_WQUEUE
 
 config TESTING_OSTEST_RR_RANGE
        int "Round-robin test - end of search range"
-       default 10000
+       default 30000
        range 1 32767
        ---help---
                During round-robin scheduling test two threads are created. 
Each of the threads
@@ -72,11 +72,11 @@ config TESTING_OSTEST_RR_RANGE
 
                This value specifies the end of search range and together with 
number of runs
                allows to configure the length of this test - it should last at 
least a few
-               tens of seconds. Allowed values [1; 32767], default 10000
+               tens of seconds. Allowed values [1; 32767], default 30000
 
 config TESTING_OSTEST_RR_RUNS
        int "Round-robin test - number of runs"
-       default 4
+       default 10
        range 1 32767
        ---help---
                During round-robin scheduling test two threads are created. 
Each of the threads
@@ -86,7 +86,7 @@ config TESTING_OSTEST_RR_RUNS
                This value specifies the number of times the thread searches 
the range for
                prime numbers and together with end of search range allows to 
configure the
                length of this test - it should last at least a few tens of 
seconds. Allowed
-               values [1; 32767], default 4
+               values [1; 32767], default 10
 
 if ARCH_FPU && SCHED_WAITPID
 
diff --git a/testing/ostest/roundrobin.c b/testing/ostest/roundrobin.c
index 49984f2f8..86af993b8 100644
--- a/testing/ostest/roundrobin.c
+++ b/testing/ostest/roundrobin.c
@@ -57,11 +57,11 @@
 #endif
 
 #ifndef CONFIG_TESTING_OSTEST_RR_RUNS
-#  define CONFIG_TESTING_OSTEST_RR_RUNS 4
-#  warning "CONFIG_TESTING_OSTEST_RR_RUNS undefined, using default value = 4"
+#  define CONFIG_TESTING_OSTEST_RR_RUNS 10
+#  warning "CONFIG_TESTING_OSTEST_RR_RUNS undefined, using default value = 10"
 #elif (CONFIG_TESTING_OSTEST_RR_RUNS < 1) || (CONFIG_TESTING_OSTEST_RR_RUNS > 
32767)
-#  define CONFIG_TESTING_OSTEST_RR_RUNS 4
-#  warning "Invalid value of CONFIG_TESTING_OSTEST_RR_RUNS, using default 
value = 4"
+#  define CONFIG_TESTING_OSTEST_RR_RUNS 10
+#  warning "Invalid value of CONFIG_TESTING_OSTEST_RR_RUNS, using default 
value = 10"
 #endif
 
 /****************************************************************************

Reply via email to