8b56345e44
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. |
||
---|---|---|
.. | ||
component.mk | ||
test_freertos.c | ||
test_freertos_debug_functions.c | ||
test_freertos_eventgroups.c | ||
test_freertos_get_state.c | ||
test_freertos_isinisrcontext.c | ||
test_freertos_task_delay_until.c | ||
test_freertos_task_delete.c | ||
test_freertos_task_notify.c | ||
test_freertos_trace_utilities.c | ||
test_newlib_reent.c | ||
test_panic.c | ||
test_preemption.c | ||
test_ringbuf.c | ||
test_spinlocks.c | ||
test_suspend_scheduler.c | ||
test_task_priorities.c | ||
test_task_suspend_resume.c | ||
test_tasks_snapshot.c | ||
test_timers.c | ||
test_tls_deletecb.c |