|
|
@ -5377,6 +5377,9 @@ void test_xTaskGenericNotify_success_eIncrement_ISR( void )
|
|
|
|
/* prvAddTaskToReadyList */
|
|
|
|
/* prvAddTaskToReadyList */
|
|
|
|
listINSERT_END_Expect( &pxReadyTasksLists[ ptcb->uxPriority ],
|
|
|
|
listINSERT_END_Expect( &pxReadyTasksLists[ ptcb->uxPriority ],
|
|
|
|
&ptcb->xStateListItem );
|
|
|
|
&ptcb->xStateListItem );
|
|
|
|
|
|
|
|
/* prvResetNextTaskUnblockTime */
|
|
|
|
|
|
|
|
listLIST_IS_EMPTY_ExpectAndReturn( pxDelayedTaskList, pdFALSE );
|
|
|
|
|
|
|
|
listGET_ITEM_VALUE_OF_HEAD_ENTRY_ExpectAndReturn( pxDelayedTaskList, 1000 );
|
|
|
|
|
|
|
|
|
|
|
|
/* API Call */
|
|
|
|
/* API Call */
|
|
|
|
ret_task_notify = xTaskGenericNotifyFromISR( ptcb,
|
|
|
|
ret_task_notify = xTaskGenericNotifyFromISR( ptcb,
|
|
|
@ -5415,6 +5418,10 @@ void test_xTaskGenericNotify_success_eSetValueWithOverwrite_ISR( void )
|
|
|
|
/* prvAddTaskToReadyList */
|
|
|
|
/* prvAddTaskToReadyList */
|
|
|
|
listINSERT_END_Expect( &pxReadyTasksLists[ ptcb->uxPriority ],
|
|
|
|
listINSERT_END_Expect( &pxReadyTasksLists[ ptcb->uxPriority ],
|
|
|
|
&ptcb->xStateListItem );
|
|
|
|
&ptcb->xStateListItem );
|
|
|
|
|
|
|
|
/* prvResetNextTaskUnblockTime */
|
|
|
|
|
|
|
|
listLIST_IS_EMPTY_ExpectAndReturn( pxDelayedTaskList, pdFALSE );
|
|
|
|
|
|
|
|
listGET_ITEM_VALUE_OF_HEAD_ENTRY_ExpectAndReturn( pxDelayedTaskList, 1000 );
|
|
|
|
|
|
|
|
|
|
|
|
/* API Call */
|
|
|
|
/* API Call */
|
|
|
|
ret_task_notify = xTaskGenericNotifyFromISR( ptcb,
|
|
|
|
ret_task_notify = xTaskGenericNotifyFromISR( ptcb,
|
|
|
|
uxIndexToNotify,
|
|
|
|
uxIndexToNotify,
|
|
|
@ -5452,6 +5459,10 @@ void test_xTaskGenericNotify_success_eSetValueWithoutOverwrite_ISR( void )
|
|
|
|
/* prvAddTaskToReadyList */
|
|
|
|
/* prvAddTaskToReadyList */
|
|
|
|
listINSERT_END_Expect( &pxReadyTasksLists[ ptcb->uxPriority ],
|
|
|
|
listINSERT_END_Expect( &pxReadyTasksLists[ ptcb->uxPriority ],
|
|
|
|
&ptcb->xStateListItem );
|
|
|
|
&ptcb->xStateListItem );
|
|
|
|
|
|
|
|
/* prvResetNextTaskUnblockTime */
|
|
|
|
|
|
|
|
listLIST_IS_EMPTY_ExpectAndReturn( pxDelayedTaskList, pdFALSE );
|
|
|
|
|
|
|
|
listGET_ITEM_VALUE_OF_HEAD_ENTRY_ExpectAndReturn( pxDelayedTaskList, 1000 );
|
|
|
|
|
|
|
|
|
|
|
|
/* API Call */
|
|
|
|
/* API Call */
|
|
|
|
ret_task_notify = xTaskGenericNotifyFromISR( ptcb,
|
|
|
|
ret_task_notify = xTaskGenericNotifyFromISR( ptcb,
|
|
|
|
uxIndexToNotify,
|
|
|
|
uxIndexToNotify,
|
|
|
@ -5561,6 +5572,9 @@ void test_xTaskGenericNotify_success_default_ISR( void )
|
|
|
|
/* prvAddTaskToReadyList */
|
|
|
|
/* prvAddTaskToReadyList */
|
|
|
|
listINSERT_END_Expect( &pxReadyTasksLists[ ptcb->uxPriority ],
|
|
|
|
listINSERT_END_Expect( &pxReadyTasksLists[ ptcb->uxPriority ],
|
|
|
|
&ptcb->xStateListItem );
|
|
|
|
&ptcb->xStateListItem );
|
|
|
|
|
|
|
|
/* prvResetNextTaskUnblockTime */
|
|
|
|
|
|
|
|
listLIST_IS_EMPTY_ExpectAndReturn( pxDelayedTaskList, pdTRUE );
|
|
|
|
|
|
|
|
|
|
|
|
/* API Call */
|
|
|
|
/* API Call */
|
|
|
|
ret_task_notify = xTaskGenericNotifyFromISR( ptcb,
|
|
|
|
ret_task_notify = xTaskGenericNotifyFromISR( ptcb,
|
|
|
|
uxIndexToNotify,
|
|
|
|
uxIndexToNotify,
|
|
|
@ -5606,6 +5620,9 @@ void test_xTaskGenericNotify_success_default_ISR_task_woken_null( void )
|
|
|
|
/* prvAddTaskToReadyList */
|
|
|
|
/* prvAddTaskToReadyList */
|
|
|
|
listINSERT_END_Expect( &pxReadyTasksLists[ ptcb->uxPriority ],
|
|
|
|
listINSERT_END_Expect( &pxReadyTasksLists[ ptcb->uxPriority ],
|
|
|
|
&ptcb->xStateListItem );
|
|
|
|
&ptcb->xStateListItem );
|
|
|
|
|
|
|
|
/* prvResetNextTaskUnblockTime */
|
|
|
|
|
|
|
|
listLIST_IS_EMPTY_ExpectAndReturn( pxDelayedTaskList, pdTRUE );
|
|
|
|
|
|
|
|
|
|
|
|
/* API Call */
|
|
|
|
/* API Call */
|
|
|
|
ret_task_notify = xTaskGenericNotifyFromISR( ptcb,
|
|
|
|
ret_task_notify = xTaskGenericNotifyFromISR( ptcb,
|
|
|
|
uxIndexToNotify,
|
|
|
|
uxIndexToNotify,
|
|
|
@ -5802,6 +5819,9 @@ void test_vTaskGenericNotifyGiveFromISR_success( void )
|
|
|
|
listREMOVE_ITEM_Expect( &( task_to_notify->xStateListItem ) );
|
|
|
|
listREMOVE_ITEM_Expect( &( task_to_notify->xStateListItem ) );
|
|
|
|
/* prvAddTaskToReadyList */
|
|
|
|
/* prvAddTaskToReadyList */
|
|
|
|
listINSERT_END_Expect( &( pxReadyTasksLists[ task_to_notify->uxPriority ] ), &task_to_notify->xStateListItem );
|
|
|
|
listINSERT_END_Expect( &( pxReadyTasksLists[ task_to_notify->uxPriority ] ), &task_to_notify->xStateListItem );
|
|
|
|
|
|
|
|
/* prvResetNextTaskUnblockTime */
|
|
|
|
|
|
|
|
listLIST_IS_EMPTY_ExpectAndReturn( pxDelayedTaskList, pdFALSE );
|
|
|
|
|
|
|
|
listGET_ITEM_VALUE_OF_HEAD_ENTRY_ExpectAndReturn( pxDelayedTaskList, 1000 );
|
|
|
|
|
|
|
|
|
|
|
|
/* API Call */
|
|
|
|
/* API Call */
|
|
|
|
vTaskGenericNotifyGiveFromISR( task_to_notify,
|
|
|
|
vTaskGenericNotifyGiveFromISR( task_to_notify,
|
|
|
|