mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-08-18 10:12:38 +08: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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user