OVMS3-idf/components/freertos/test
Ivan Grokhotkov 8b56345e44 unit tests: fix queue registry test
In the queue registry test, start_sem is given twice to let both tasks
start the test. Each task takes start_sem, does some work, gives done_sem,
and goes on to wait for start_sem again.
It may happen that one task can grab start_sem, add queues to the
registry, give done_sem, then grab start_sem again, delete the queues
from the registry, and give done_sem again. At this point, main test
task takes done_sem twice and proceeds to verify that queues have been
added to the registry. But in fact, the first task has already deleted
its queues from the registry, and the second one might not have added
the queues yet. This causes test to fail.

This changes the test to use separate start semaphores for each task,
to avoid the race condition.
2017-11-14 23:53:08 +08:00
..
component.mk add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
test_freertos.c unit tests: fix warnings, build with -Werror 2017-10-19 21:35:23 +08:00
test_freertos_debug_functions.c unit tests: fix queue registry test 2017-11-14 23:53:08 +08:00
test_freertos_eventgroups.c freertos/make trace facility configurable 2017-10-20 15:17:17 +08:00
test_freertos_get_state.c freertos: Test untested functions 2017-11-06 15:31:01 +08:00
test_freertos_isinisrcontext.c unit test: adapt tests to single core configuration 2017-10-19 21:35:21 +08:00
test_freertos_task_delay_until.c freertos: Test untested functions 2017-11-06 15:31:01 +08:00
test_freertos_task_delete.c freertos tests: Enable test_freertos_task_delete 2017-02-28 15:47:15 +11:00
test_freertos_task_notify.c freertos: Test untested functions 2017-11-06 15:31:01 +08:00
test_freertos_trace_utilities.c freertos/make trace facility configurable 2017-10-20 15:17:17 +08:00
test_newlib_reent.c unit test: adapt tests to single core configuration 2017-10-19 21:35:21 +08:00
test_panic.c esp32: add [ignore] tag to some unit test cases for CI 2017-01-18 17:08:20 +08:00
test_preemption.c unit test: adapt tests to single core configuration 2017-10-19 21:35:21 +08:00
test_ringbuf.c unit tests: fix warnings, build with -Werror 2017-10-19 21:35:23 +08:00
test_spinlocks.c unit test: adapt tests to single core configuration 2017-10-19 21:35:21 +08:00
test_suspend_scheduler.c unit_tests/Update unit test timer divider 2017-10-30 19:42:16 +08:00
test_task_priorities.c freertos: Mark uxTaskPriorityGet() as tested 2017-05-29 16:19:00 +10:00
test_task_suspend_resume.c unit_tests/Update unit test timer divider 2017-10-30 19:42:16 +08:00
test_tasks_snapshot.c esp32: Fixes crash during core dump. 2017-09-11 17:20:42 +03:00
test_timers.c Unit tests: Add FreeRTOS timer tests 2017-05-05 14:38:15 +10:00
test_tls_deletecb.c freertos: fix TLS delete callback test 2016-12-13 13:24:01 +08:00