esp-idf/components/freertos
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
..
include/freertos FreeRTOS/make Queue Registry and Run Time Stats configurable 2017-11-14 15:50:31 +08:00
test unit tests: fix queue registry test 2017-11-14 23:53:08 +08:00
component.mk build system: Restore ifdef/ifndef in Makefiles, clean up examples build 2017-09-05 16:11:03 +10:00
croutine.c Add UNTESTED_FUNCTION() call to untested functions, make Kconfig option to enable that to map to assert() 2016-09-27 11:36:30 +08:00
event_groups.c freertos: Fix cross-core usage of event groups 2017-02-28 12:06:36 +11:00
FreeRTOS-openocd.c freertos: place uxTopUsedPriority into DRAM 2017-09-11 20:15:27 +08:00
Kconfig FreeRTOS/make Queue Registry and Run Time Stats configurable 2017-11-14 15:50:31 +08:00
license.txt Initial public version 2016-08-17 23:08:22 +08:00
list.c Initial public version 2016-08-17 23:08:22 +08:00
port.c Merge branch 'bugfix/freertos_portmux_debug' into 'master' 2017-10-17 04:44:04 +08:00
portasm.S pm: support for tracing using GPIOs 2017-10-18 14:19:18 +08:00
portmux_impl.h portmux: Add vPortCPUAcquireMutexTimeout() function 2017-09-04 19:11:51 +10:00
queue.c FreeRTOS/make Queue Registry and Run Time Stats configurable 2017-11-14 15:50:31 +08:00
readme_xtensa.txt Initial public version 2016-08-17 23:08:22 +08:00
ringbuf.c Fix an assert that erroneously triggered when popping a zero-byte payload from the end of the ringbuffer 2017-08-28 19:31:26 +08:00
stdint.readme Initial public version 2016-08-17 23:08:22 +08:00
tasks.c FreeRTOS/make Queue Registry and Run Time Stats configurable 2017-11-14 15:50:31 +08:00
timers.c esp32: SEGGER SystemView Tracing Support 2017-06-27 20:52:43 +03:00
xtensa_context.S fix bug that files missing commit in MR 773 2017-05-31 19:37:39 +08:00
xtensa_init.c freertos: deprecate XT_CLOCK_FREQ 2017-10-18 14:19:19 +08:00
xtensa_intr_asm.S Replace non-multicore-aware rom funcs with multicore-aware funcs, ESP_LOG->ESP_EARLY_LOG fix, reserve ints used in wireless libs. Fixes WiFi crashing 2016-12-13 13:24:01 +08:00
xtensa_intr.c esp32: SEGGER SystemView Tracing Support 2017-06-27 20:52:43 +03:00
xtensa_overlay_os_hook.c Initial public version 2016-08-17 23:08:22 +08:00
xtensa_vector_defaults.S panic handler: Print correct PC & backtrace for debug exceptions 2017-10-23 15:46:43 +08:00
xtensa_vectors.S pm: support for tracing using GPIOs 2017-10-18 14:19:18 +08:00