mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-08-06 18:24:41 +08:00
Don't expect call to xTaskResumeAll in some cases (#1295)
This commit is contained in:
@ -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,
|
||||||
|
Reference in New Issue
Block a user