From 76c0f8788c701f67653561bd3aaeb63ed7baa1be Mon Sep 17 00:00:00 2001 From: chinglee-iot <61685396+chinglee-iot@users.noreply.github.com> Date: Mon, 11 Dec 2023 15:04:20 +0800 Subject: [PATCH] Fix SMP unit test for switch hook (#1133) * Fix SMP unit test for switch hook --- .../covg_multiple_priorities_no_timeslice_utest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/FreeRTOS/Test/CMock/smp/multiple_priorities_no_timeslice/covg_multiple_priorities_no_timeslice_utest.c b/FreeRTOS/Test/CMock/smp/multiple_priorities_no_timeslice/covg_multiple_priorities_no_timeslice_utest.c index 0647a66dc..0d96dba8d 100644 --- a/FreeRTOS/Test/CMock/smp/multiple_priorities_no_timeslice/covg_multiple_priorities_no_timeslice_utest.c +++ b/FreeRTOS/Test/CMock/smp/multiple_priorities_no_timeslice/covg_multiple_priorities_no_timeslice_utest.c @@ -1802,6 +1802,7 @@ void test_coverage_xTaskRemoveFromEventList_remove_eq_priority_task( void ) vFakePortGetCoreID_ExpectAndReturn( 0 ); /* Get prvYieldCore. */ vFakePortGetCoreID_ExpectAndReturn( 0 ); /* Get portGET_CRITICAL_NESTING_COUNT. */ vFakePortGetCoreID_ExpectAndReturn( 0 ); /* Get xYieldPendings. */ + vFakePortGetCoreID_ExpectAndReturn( 0 ); /* portTASK_SWITCH_HOOK(). */ /* API call. */ xReturn = xTaskRemoveFromEventList( &xEventList );