mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-18 02:37:47 -04:00
The test simulates the scenario when a task with priority equal to the currently executing task is unblocked as a result of the xTaskIncrementTick call. Related PR - https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/568 Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
parent
a81231139e
commit
3893cbdb12
1 changed files with 3 additions and 1 deletions
|
@ -2659,7 +2659,9 @@ void test_xTaskIncrementTick_success_unblock_tasks( void )
|
||||||
TaskHandle_t task_handle2;
|
TaskHandle_t task_handle2;
|
||||||
|
|
||||||
/* setup */
|
/* setup */
|
||||||
|
create_task_priority = 4;
|
||||||
task_handle = create_task();
|
task_handle = create_task();
|
||||||
|
create_task_priority = 4;
|
||||||
task_handle2 = create_task();
|
task_handle2 = create_task();
|
||||||
ptcb = task_handle;
|
ptcb = task_handle;
|
||||||
xPendedTicks = 3;
|
xPendedTicks = 3;
|
||||||
|
@ -2680,7 +2682,7 @@ void test_xTaskIncrementTick_success_unblock_tasks( void )
|
||||||
listLIST_IS_EMPTY_ExpectAndReturn( pxDelayedTaskList, pdTRUE );
|
listLIST_IS_EMPTY_ExpectAndReturn( pxDelayedTaskList, pdTRUE );
|
||||||
/* back */
|
/* back */
|
||||||
listCURRENT_LIST_LENGTH_ExpectAndReturn( &pxReadyTasksLists[ ptcb->uxPriority ],
|
listCURRENT_LIST_LENGTH_ExpectAndReturn( &pxReadyTasksLists[ ptcb->uxPriority ],
|
||||||
1 );
|
2 );
|
||||||
|
|
||||||
/* API Call */
|
/* API Call */
|
||||||
ret_task_incrementtick = xTaskIncrementTick();
|
ret_task_incrementtick = xTaskIncrementTick();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue