mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-17 10:17:45 -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;
|
||||
|
||||
/* setup */
|
||||
create_task_priority = 4;
|
||||
task_handle = create_task();
|
||||
create_task_priority = 4;
|
||||
task_handle2 = create_task();
|
||||
ptcb = task_handle;
|
||||
xPendedTicks = 3;
|
||||
|
@ -2680,7 +2682,7 @@ void test_xTaskIncrementTick_success_unblock_tasks( void )
|
|||
listLIST_IS_EMPTY_ExpectAndReturn( pxDelayedTaskList, pdTRUE );
|
||||
/* back */
|
||||
listCURRENT_LIST_LENGTH_ExpectAndReturn( &pxReadyTasksLists[ ptcb->uxPriority ],
|
||||
1 );
|
||||
2 );
|
||||
|
||||
/* API Call */
|
||||
ret_task_incrementtick = xTaskIncrementTick();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue