]> granicus.if.org Git - esp-idf/commit
BugFix: uxTaskGetSystemState test case update
authorDarian Leung <darian@espressif.com>
Fri, 16 Jun 2017 03:49:48 +0000 (11:49 +0800)
committerDarian Leung <darian@espressif.com>
Fri, 16 Jun 2017 08:00:54 +0000 (16:00 +0800)
commit1c798b0eab9803b95ed3805618bf8861ac195d05
treec7d38d95edac34cd7201de2971ca2aef794ffd86
parentf114ef4a6aa304b05408768112ba545b6477fd73
BugFix: uxTaskGetSystemState test case update

Updated test case to include configASSERT cases (+1 squashed commits)

Squashed commits:

[871ec26f] Freertos:Bugfix uxTaskGetSystemState

Bug (github #12142) with uxTaskGetSystemState where
if called immediately after creating a bunch of tasks,
those tasks would be added twice into the TaskStatusArray.
Bug caused due to use old implementation using vTaskSuspendAll
which did not stop newly created task on other core from accessing the
read/waiting task lists whilst the list were being read by
uxTaskGetSystemState. Fixed bug by replacing vTaskSuspendAll
with taskENTER_CRITICAL and added test case for the bugfix
components/freertos/tasks.c
components/freertos/test/test_uxGetSystemState_Bugfix.c [new file with mode: 0644]