Skip to content

Commit

Permalink
Don't expect call to xTaskResumeAll in some cases (FreeRTOS#1295)
Browse files Browse the repository at this point in the history
  • Loading branch information
jefftenney authored Nov 12, 2024
1 parent ad0ea05 commit 1469448
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions FreeRTOS/Test/CMock/tasks/tasks_1_utest.c
Original file line number Diff line number Diff line change
Expand Up @@ -4949,8 +4949,6 @@ void test_ulTaskGenericNotifyTake_success( void )
task_handle = create_task();
task_handle->ulNotifiedValue[ uxIndexToWait ] = 0;
/* Expectations */
/* xTaskResumeAll */
listLIST_IS_EMPTY_ExpectAndReturn( &xPendingReadyList, pdTRUE );
/* API Call */
ret_gen_notify_take = ulTaskGenericNotifyTake( uxIndexToWait,
pdFALSE,
Expand All @@ -4971,8 +4969,6 @@ void test_ulTaskGenericNotifyTake_success2( void )
task_handle = create_task();
task_handle->ulNotifiedValue[ uxIndexToWait ] = 2;
/* Expectations */
/* xTaskResumeAll */
listLIST_IS_EMPTY_ExpectAndReturn( &xPendingReadyList, pdTRUE );
/* API Call */
ret_gen_notify_take = ulTaskGenericNotifyTake( uxIndexToWait,
pdFALSE,
Expand All @@ -4993,8 +4989,6 @@ void test_ulTaskGenericNotifyTake_success_clear_count( void )
task_handle = create_task();
task_handle->ulNotifiedValue[ uxIndexToWait ] = 5;
/* Expectations */
/* xTaskResumeAll */
listLIST_IS_EMPTY_ExpectAndReturn( &xPendingReadyList, pdTRUE );
/* API Call */
ret_gen_notify_take = ulTaskGenericNotifyTake( uxIndexToWait,
pdTRUE,
Expand Down Expand Up @@ -5658,8 +5652,6 @@ void test_xTaskGenericNotifyWait_success_notif_received( void )
ptcb->ucNotifyState[ uxIndexToWait ] = 2; /* taskNOTIFICATION_RECEIVED */
ptcb->ulNotifiedValue[ uxIndexToWait ] = 5;
/* Expectations */
/* xTaskResumeAll */
listLIST_IS_EMPTY_ExpectAndReturn( &xPendingReadyList, pdTRUE );
/* API Call */
ret = xTaskGenericNotifyWait( uxIndexToWait,
ulBitsToClearOnEntry,
Expand Down Expand Up @@ -5723,8 +5715,6 @@ void test_xTaskGenericNotifyWait_success_notif_not_received_no_wait( void )
ptcb->ucNotifyState[ uxIndexToWait ] = 1; /* taskWAITING_NOTIFICATION */
ptcb->ulNotifiedValue[ uxIndexToWait ] = 5;
/* Expectations */
/* xTaskResumeAll */
listLIST_IS_EMPTY_ExpectAndReturn( &xPendingReadyList, pdTRUE );
/* API Call */
ret = xTaskGenericNotifyWait( uxIndexToWait,
ulBitsToClearOnEntry,
Expand Down Expand Up @@ -5753,8 +5743,6 @@ void test_xTaskGenericNotifyWait_success_notif_not_received_pull_null( void )
ptcb->ucNotifyState[ uxIndexToWait ] = 1; /* taskWAITING_NOTIFICATION */
ptcb->ulNotifiedValue[ uxIndexToWait ] = 5;
/* Expectations */
/* xTaskResumeAll */
listLIST_IS_EMPTY_ExpectAndReturn( &xPendingReadyList, pdTRUE );
/* API Call */
ret = xTaskGenericNotifyWait( uxIndexToWait,
ulBitsToClearOnEntry,
Expand Down

0 comments on commit 1469448

Please sign in to comment.