From 1469448e3effef9972b04f4bcb3c9f59b03ca89a Mon Sep 17 00:00:00 2001 From: Jeff Tenney Date: Tue, 12 Nov 2024 00:01:58 -0700 Subject: [PATCH] Don't expect call to xTaskResumeAll in some cases (#1295) --- FreeRTOS/Test/CMock/tasks/tasks_1_utest.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/FreeRTOS/Test/CMock/tasks/tasks_1_utest.c b/FreeRTOS/Test/CMock/tasks/tasks_1_utest.c index 1c38023f195..dbbd77b5fcb 100644 --- a/FreeRTOS/Test/CMock/tasks/tasks_1_utest.c +++ b/FreeRTOS/Test/CMock/tasks/tasks_1_utest.c @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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,