Fix SMP unit test for switch hook (#1133)

* Fix SMP unit test for switch hook
This commit is contained in:
chinglee-iot 2023-12-11 15:04:20 +08:00 committed by GitHub
parent 0945a8ac50
commit 76c0f8788c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 );