mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-26 23:36:32 -04:00
Update SMP unit test for vTaskDelete change (#1158)
* Fix vTaskDelete SMP unit test
This commit is contained in:
parent
154dee1c86
commit
3e1c9a51df
2 changed files with 8 additions and 0 deletions
|
|
@ -395,6 +395,10 @@ void test_vTaskDelete_assert_scheduler_suspended_eq_1( void )
|
|||
listLIST_ITEM_CONTAINER_ExpectAnyArgsAndReturn( NULL );
|
||||
vListInsertEnd_ExpectAnyArgs();
|
||||
vPortCurrentTaskDying_ExpectAnyArgs();
|
||||
vFakePortExitCriticalSection_Expect();
|
||||
|
||||
/* Critical section for check task is running. */
|
||||
vFakePortEnterCriticalSection_Expect();
|
||||
vFakePortGetCoreID_ExpectAndReturn( 1 );
|
||||
|
||||
EXPECT_ASSERT_BREAK( vTaskDelete( xTaskToDelete ) );
|
||||
|
|
|
|||
|
|
@ -584,6 +584,10 @@ void test_coverage_vTaskDelete_task_not_running( void )
|
|||
|
||||
vFakePortExitCriticalSection_Expect();
|
||||
|
||||
/* Critical section for check task is running. */
|
||||
vFakePortEnterCriticalSection_Expect();
|
||||
vFakePortExitCriticalSection_Expect();
|
||||
|
||||
/* API Call */
|
||||
vTaskDelete( xTaskToDelete );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue