Don't expect call to xTaskResumeAll in some cases (#1295)

pull/1235/merge
Jeff Tenney 3 months ago committed by GitHub
parent ad0ea05f57
commit 1469448e3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4949,8 +4949,6 @@ void test_ulTaskGenericNotifyTake_success( void )
task_handle = create_task(); task_handle = create_task();
task_handle->ulNotifiedValue[ uxIndexToWait ] = 0; task_handle->ulNotifiedValue[ uxIndexToWait ] = 0;
/* Expectations */ /* Expectations */
/* xTaskResumeAll */
listLIST_IS_EMPTY_ExpectAndReturn( &xPendingReadyList, pdTRUE );
/* API Call */ /* API Call */
ret_gen_notify_take = ulTaskGenericNotifyTake( uxIndexToWait, ret_gen_notify_take = ulTaskGenericNotifyTake( uxIndexToWait,
pdFALSE, pdFALSE,
@ -4971,8 +4969,6 @@ void test_ulTaskGenericNotifyTake_success2( void )
task_handle = create_task(); task_handle = create_task();
task_handle->ulNotifiedValue[ uxIndexToWait ] = 2; task_handle->ulNotifiedValue[ uxIndexToWait ] = 2;
/* Expectations */ /* Expectations */
/* xTaskResumeAll */
listLIST_IS_EMPTY_ExpectAndReturn( &xPendingReadyList, pdTRUE );
/* API Call */ /* API Call */
ret_gen_notify_take = ulTaskGenericNotifyTake( uxIndexToWait, ret_gen_notify_take = ulTaskGenericNotifyTake( uxIndexToWait,
pdFALSE, pdFALSE,
@ -4993,8 +4989,6 @@ void test_ulTaskGenericNotifyTake_success_clear_count( void )
task_handle = create_task(); task_handle = create_task();
task_handle->ulNotifiedValue[ uxIndexToWait ] = 5; task_handle->ulNotifiedValue[ uxIndexToWait ] = 5;
/* Expectations */ /* Expectations */
/* xTaskResumeAll */
listLIST_IS_EMPTY_ExpectAndReturn( &xPendingReadyList, pdTRUE );
/* API Call */ /* API Call */
ret_gen_notify_take = ulTaskGenericNotifyTake( uxIndexToWait, ret_gen_notify_take = ulTaskGenericNotifyTake( uxIndexToWait,
pdTRUE, pdTRUE,
@ -5658,8 +5652,6 @@ void test_xTaskGenericNotifyWait_success_notif_received( void )
ptcb->ucNotifyState[ uxIndexToWait ] = 2; /* taskNOTIFICATION_RECEIVED */ ptcb->ucNotifyState[ uxIndexToWait ] = 2; /* taskNOTIFICATION_RECEIVED */
ptcb->ulNotifiedValue[ uxIndexToWait ] = 5; ptcb->ulNotifiedValue[ uxIndexToWait ] = 5;
/* Expectations */ /* Expectations */
/* xTaskResumeAll */
listLIST_IS_EMPTY_ExpectAndReturn( &xPendingReadyList, pdTRUE );
/* API Call */ /* API Call */
ret = xTaskGenericNotifyWait( uxIndexToWait, ret = xTaskGenericNotifyWait( uxIndexToWait,
ulBitsToClearOnEntry, ulBitsToClearOnEntry,
@ -5723,8 +5715,6 @@ void test_xTaskGenericNotifyWait_success_notif_not_received_no_wait( void )
ptcb->ucNotifyState[ uxIndexToWait ] = 1; /* taskWAITING_NOTIFICATION */ ptcb->ucNotifyState[ uxIndexToWait ] = 1; /* taskWAITING_NOTIFICATION */
ptcb->ulNotifiedValue[ uxIndexToWait ] = 5; ptcb->ulNotifiedValue[ uxIndexToWait ] = 5;
/* Expectations */ /* Expectations */
/* xTaskResumeAll */
listLIST_IS_EMPTY_ExpectAndReturn( &xPendingReadyList, pdTRUE );
/* API Call */ /* API Call */
ret = xTaskGenericNotifyWait( uxIndexToWait, ret = xTaskGenericNotifyWait( uxIndexToWait,
ulBitsToClearOnEntry, ulBitsToClearOnEntry,
@ -5753,8 +5743,6 @@ void test_xTaskGenericNotifyWait_success_notif_not_received_pull_null( void )
ptcb->ucNotifyState[ uxIndexToWait ] = 1; /* taskWAITING_NOTIFICATION */ ptcb->ucNotifyState[ uxIndexToWait ] = 1; /* taskWAITING_NOTIFICATION */
ptcb->ulNotifiedValue[ uxIndexToWait ] = 5; ptcb->ulNotifiedValue[ uxIndexToWait ] = 5;
/* Expectations */ /* Expectations */
/* xTaskResumeAll */
listLIST_IS_EMPTY_ExpectAndReturn( &xPendingReadyList, pdTRUE );
/* API Call */ /* API Call */
ret = xTaskGenericNotifyWait( uxIndexToWait, ret = xTaskGenericNotifyWait( uxIndexToWait,
ulBitsToClearOnEntry, ulBitsToClearOnEntry,

Loading…
Cancel
Save