mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 16:57:41 -04:00
Update unit test to address vTaskDelete and vTaskSuspend change for SMP (#1178)
* Update the unit test to address the problem task self void state change
This commit is contained in:
parent
257c2916c0
commit
3c5fbc769b
2 changed files with 0 additions and 28 deletions
|
@ -395,10 +395,6 @@ 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 ) );
|
||||
|
@ -446,15 +442,7 @@ void test_vTaskSuspend_assert_schedulersuspended_ne_zero( void )
|
|||
uxListRemove_ExpectAnyArgsAndReturn( pdTRUE );
|
||||
listLIST_ITEM_CONTAINER_ExpectAnyArgsAndReturn( NULL );
|
||||
vListInsertEnd_ExpectAnyArgs();
|
||||
vFakePortExitCriticalSection_Expect();
|
||||
|
||||
/* Reset the next expected unblock time if scheduler is running. */
|
||||
vFakePortEnterCriticalSection_Expect();
|
||||
listLIST_IS_EMPTY_ExpectAnyArgsAndReturn( pdTRUE );
|
||||
vFakePortExitCriticalSection_Expect();
|
||||
|
||||
/* Check task run state in critical section. */
|
||||
vFakePortEnterCriticalSection_Expect();
|
||||
vFakePortGetCoreID_ExpectAndReturn( 1 );
|
||||
|
||||
EXPECT_ASSERT_BREAK( vTaskSuspend( xTaskToSuspend ) );
|
||||
|
|
|
@ -239,10 +239,6 @@ void test_coverage_vTaskSuspend_scheduler_running_false( void )
|
|||
vListInsertEnd_ExpectAnyArgs();
|
||||
vFakePortExitCriticalSection_Expect();
|
||||
|
||||
/* Enter critical section to check task run state. */
|
||||
vFakePortEnterCriticalSection_Expect();
|
||||
vFakePortExitCriticalSection_Expect();
|
||||
|
||||
/* API call. */
|
||||
vTaskSuspend( &xTaskTCBs[ 0 ] );
|
||||
|
||||
|
@ -281,10 +277,6 @@ void test_coverage_vTaskSuspend_running_state_below_range( void )
|
|||
vListInsertEnd_ExpectAnyArgs();
|
||||
vFakePortExitCriticalSection_Expect();
|
||||
|
||||
/* Enter critical section to check task run state. */
|
||||
vFakePortEnterCriticalSection_Expect();
|
||||
vFakePortExitCriticalSection_Expect();
|
||||
|
||||
/* API call. */
|
||||
vTaskSuspend( &xTaskTCBs[ 0 ] );
|
||||
|
||||
|
@ -322,10 +314,6 @@ void test_coverage_vTaskSuspend_running_state_above_range( void )
|
|||
vListInsertEnd_ExpectAnyArgs();
|
||||
vFakePortExitCriticalSection_Expect();
|
||||
|
||||
/* Enter critical section to check task run state. */
|
||||
vFakePortEnterCriticalSection_Expect();
|
||||
vFakePortExitCriticalSection_Expect();
|
||||
|
||||
/* API call. */
|
||||
vTaskSuspend( &xTaskTCBs[ 0 ] );
|
||||
|
||||
|
@ -545,10 +533,6 @@ 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