diff --git a/FreeRTOS/Test/CMock/smp/config_assert/config_assert_utest.c b/FreeRTOS/Test/CMock/smp/config_assert/config_assert_utest.c index c1ddf191f05..60729131b8a 100644 --- a/FreeRTOS/Test/CMock/smp/config_assert/config_assert_utest.c +++ b/FreeRTOS/Test/CMock/smp/config_assert/config_assert_utest.c @@ -278,13 +278,7 @@ void test_prvYieldForTask_assert_yieldpending_core_is_false( void ) vFakePortEnterCriticalSection_Expect(); /* back */ /* prvYieldForTask */ - vFakePortGetCoreID_ExpectAndReturn( 0 ); - vFakePortGetCoreID_ExpectAndReturn( 1 ); - vFakePortGetCoreID_ExpectAndReturn( 1 ); vFakePortGetCoreID_ExpectAndReturn( 1 ); - vFakePortGetCoreID_ExpectAndReturn( 0 ); - vFakePortGetCoreID_ExpectAndReturn( 0 ); - vFakePortGetCoreID_ExpectAndReturn( 0 ); EXPECT_ASSERT_BREAK( vTaskRemoveFromUnorderedEventList( &xEventListItem, xItemValue ) ); @@ -319,7 +313,6 @@ void test_prvSelectHighestPriorityTask_assert_scheduler_running_false( void ) vFakePortGetTaskLock_Expect(); vFakePortGetISRLock_Expect(); - vFakePortGetCoreID_ExpectAndReturn( 0 ); EXPECT_ASSERT_BREAK( vTaskSwitchContext( 1 ) ); validate_and_clear_assertions(); @@ -353,7 +346,6 @@ void test_prvSelectHighestPriorityTask_assert_coreid_ne_runstate( void ) vFakePortGetTaskLock_Expect(); vFakePortGetISRLock_Expect(); - vFakePortGetCoreID_ExpectAndReturn( 0 ); listIS_CONTAINED_WITHIN_ExpectAnyArgsAndReturn( pdFALSE ); listLIST_IS_EMPTY_ExpectAnyArgsAndReturn( pdFALSE ); @@ -477,7 +469,6 @@ void test_vTaskSwitchContext_assert_nexting_count_ne_zero( void ) vFakePortGetTaskLock_Expect(); vFakePortGetISRLock_Expect(); - vFakePortGetCoreID_ExpectAndReturn( 1 ); EXPECT_ASSERT_BREAK( vTaskSwitchContext( 1 ) ); diff --git a/FreeRTOS/Test/CMock/smp/multiple_priorities_no_timeslice_mock/covg_multiple_priorities_no_timeslice_mock_utest.c b/FreeRTOS/Test/CMock/smp/multiple_priorities_no_timeslice_mock/covg_multiple_priorities_no_timeslice_mock_utest.c index 699ddd2e6bd..ae725acc1cc 100644 --- a/FreeRTOS/Test/CMock/smp/multiple_priorities_no_timeslice_mock/covg_multiple_priorities_no_timeslice_mock_utest.c +++ b/FreeRTOS/Test/CMock/smp/multiple_priorities_no_timeslice_mock/covg_multiple_priorities_no_timeslice_mock_utest.c @@ -804,8 +804,8 @@ void test_coverage_prvGetExpectedIdleTime_ready_list_eq_1( void ) vFakePortGetCoreID_ExpectAndReturn( 0 ); vFakePortGetTaskLock_Expect(); /* prvCheckForRunStateChange */ - vFakePortAssertIfISR_Expect(); vFakePortGetCoreID_ExpectAndReturn( 0 ); + vFakePortAssertIfISR_Expect(); /* End of prvCheckForRunStateChange */ vFakePortGetISRLock_Expect(); vFakePortReleaseISRLock_Expect();