Skip to content

Commit

Permalink
Fix Unit test for APIs ulTaskNotifyTake and xTaskNotifyWait (FreeRTOS…
Browse files Browse the repository at this point in the history
  • Loading branch information
kar-rahul-aws authored Oct 17, 2023
1 parent 56b878b commit 0392688
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions FreeRTOS/Test/CMock/tasks/tasks_1_utest.c
Original file line number Diff line number Diff line change
Expand Up @@ -4538,6 +4538,7 @@ void test_ulTaskGenericNotifyTake_success_yield( void )
uxListRemove_ExpectAndReturn( &ptcb->xStateListItem, 1 );
listSET_LIST_ITEM_VALUE_Expect( &ptcb->xStateListItem, xTickCount + 9 );
vListInsert_Expect( pxDelayedTaskList, &ptcb->xStateListItem );
listLIST_IS_EMPTY_ExpectAnyArgsAndReturn( pdTRUE );
/* API Call */
ret_gen_notify_take = ulTaskGenericNotifyTake( uxIndexToWait,
pdFALSE,
Expand Down Expand Up @@ -5160,6 +5161,7 @@ void test_xTaskGenericNotifyWait_success_notif_not_received( void )
listSET_LIST_ITEM_VALUE_Expect( &ptcb->xStateListItem,
xTickCount + xTicksToWait );
vListInsert_Expect( pxOverflowDelayedTaskList, &ptcb->xStateListItem );
listLIST_IS_EMPTY_ExpectAnyArgsAndReturn( pdTRUE );

/* API Call */
ret = xTaskGenericNotifyWait( uxIndexToWait,
Expand Down Expand Up @@ -5249,6 +5251,7 @@ void test_xTaskGenericNotifyWait_success_notif_received_while_waiting( void )
listSET_LIST_ITEM_VALUE_Expect( &ptcb->xStateListItem,
xTickCount + xTicksToWait );
vListInsert_Expect( pxOverflowDelayedTaskList, &ptcb->xStateListItem );
listLIST_IS_EMPTY_ExpectAnyArgsAndReturn( pdTRUE );
py_operation = &notif_received;

/* API Call */
Expand Down

0 comments on commit 0392688

Please sign in to comment.