From d96528c7da3951c0efa2d3cde21746378bcf3981 Mon Sep 17 00:00:00 2001 From: Michal Gorecki Date: Wed, 6 Nov 2024 15:57:09 +0100 Subject: [PATCH] kernel/os: Increase mutex test timeout On slower VMs (for example GHA's mac-os) tests were failing, as previous timeout was not enough. --- kernel/os/selftest/src/testcases/os_mutex_test_basic.c | 2 +- kernel/os/selftest/src/testcases/os_mutex_test_case_1.c | 2 +- kernel/os/selftest/src/testcases/os_mutex_test_case_2.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/os/selftest/src/testcases/os_mutex_test_basic.c b/kernel/os/selftest/src/testcases/os_mutex_test_basic.c index 53169a279f..08bf1ad7b8 100644 --- a/kernel/os/selftest/src/testcases/os_mutex_test_basic.c +++ b/kernel/os/selftest/src/testcases/os_mutex_test_basic.c @@ -25,5 +25,5 @@ TEST_CASE_TASK(os_mutex_test_basic) os_mutex_init(&g_mutex1); taskpool_alloc_assert(mutex_test_basic_handler, MYNEWT_VAL(OS_MAIN_TASK_PRIO) + 2); - taskpool_wait_assert(200); + taskpool_wait_assert(400); } diff --git a/kernel/os/selftest/src/testcases/os_mutex_test_case_1.c b/kernel/os/selftest/src/testcases/os_mutex_test_case_1.c index c83911c9cb..22ac3bc1d3 100644 --- a/kernel/os/selftest/src/testcases/os_mutex_test_case_1.c +++ b/kernel/os/selftest/src/testcases/os_mutex_test_case_1.c @@ -42,5 +42,5 @@ TEST_CASE_TASK(os_mutex_test_case_1) taskpool_alloc_assert(mutex_task3_handler, MYNEWT_VAL(OS_MAIN_TASK_PRIO) + 4); - taskpool_wait_assert(200); + taskpool_wait_assert(400); } diff --git a/kernel/os/selftest/src/testcases/os_mutex_test_case_2.c b/kernel/os/selftest/src/testcases/os_mutex_test_case_2.c index 7a00de57ad..ce10d1325e 100644 --- a/kernel/os/selftest/src/testcases/os_mutex_test_case_2.c +++ b/kernel/os/selftest/src/testcases/os_mutex_test_case_2.c @@ -39,5 +39,5 @@ TEST_CASE_TASK(os_mutex_test_case_2) taskpool_alloc_assert(mutex_task4_handler, MYNEWT_VAL(OS_MAIN_TASK_PRIO) + 5); - taskpool_wait_assert(200); + taskpool_wait_assert(400); }