mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-05-12 11:42:57 -04:00
Remove the configASSERT unit test for prvCheckForRunStateChange (#1231)
This commit is contained in:
parent
bf046c15f7
commit
b2b177aa59
1 changed files with 0 additions and 34 deletions
|
|
@ -622,40 +622,6 @@ void test_vTaskStepTick_assert_scheduler_not_suspended( void )
|
|||
validate_and_clear_assertions();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief prvCheckForRunStateChange - task state not changed.
|
||||
*
|
||||
* When the task is able to run after calling portENABLE_INTERRUPTS. The task state
|
||||
* is supposed to be changed to run state. This test cover the assertion of this scenario.
|
||||
*
|
||||
* <b>Coverage</b>
|
||||
* @code{c}
|
||||
* configASSERT( pxThisTCB->xTaskRunState != taskTASK_YIELDING );
|
||||
* @endcode
|
||||
*/
|
||||
void test_prvCheckForRunStateChange_assert_task_state_not_changed( void )
|
||||
{
|
||||
TCB_t xTaskTCB = { NULL };
|
||||
|
||||
pxCurrentTCBs[ 0 ] = &xTaskTCB;
|
||||
xTaskTCB.uxCriticalNesting = 0;
|
||||
xTaskTCB.xTaskRunState = taskTASK_YIELDING;
|
||||
uxSchedulerSuspended = 1;
|
||||
|
||||
/* Expection. */
|
||||
vFakePortAssertIfISR_Expect();
|
||||
vFakePortGetCoreID_ExpectAndReturn( 0 );
|
||||
vFakePortGetCoreID_ExpectAndReturn( 0 );
|
||||
vFakePortReleaseTaskLock_Expect();
|
||||
vFakePortEnableInterrupts_Expect();
|
||||
|
||||
/* API Call. */
|
||||
EXPECT_ASSERT_BREAK( prvCheckForRunStateChange() );
|
||||
|
||||
/* Test Verifications */
|
||||
validate_and_clear_assertions();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief vTaskStepTick - assert if scheduler suspended.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue