From 7146d05200dea075fbccffe25450308f80f748a2 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..c911204d8e 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(OS_TICKS_PER_SEC * 4); } 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..a70e3b7f39 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(OS_TICKS_PER_SEC * 4); } 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..cb00f61f42 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(OS_TICKS_PER_SEC * 4); }