Fix test failure in FreeRTOS-Kernel PR #568 (#852)

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:
Gaurav-Aggarwal-AWS 2022-09-29 12:03:36 +05:30 committed by GitHub
parent a81231139e
commit 3893cbdb12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();