Skip to content

Commit b2b177a

Browse files
authored
Remove the configASSERT unit test for prvCheckForRunStateChange (FreeRTOS#1231)
1 parent bf046c1 commit b2b177a

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

FreeRTOS/Test/CMock/smp/config_assert/config_assert_utest.c

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -622,40 +622,6 @@ void test_vTaskStepTick_assert_scheduler_not_suspended( void )
622622
validate_and_clear_assertions();
623623
}
624624

625-
/**
626-
* @brief prvCheckForRunStateChange - task state not changed.
627-
*
628-
* When the task is able to run after calling portENABLE_INTERRUPTS. The task state
629-
* is supposed to be changed to run state. This test cover the assertion of this scenario.
630-
*
631-
* <b>Coverage</b>
632-
* @code{c}
633-
* configASSERT( pxThisTCB->xTaskRunState != taskTASK_YIELDING );
634-
* @endcode
635-
*/
636-
void test_prvCheckForRunStateChange_assert_task_state_not_changed( void )
637-
{
638-
TCB_t xTaskTCB = { NULL };
639-
640-
pxCurrentTCBs[ 0 ] = &xTaskTCB;
641-
xTaskTCB.uxCriticalNesting = 0;
642-
xTaskTCB.xTaskRunState = taskTASK_YIELDING;
643-
uxSchedulerSuspended = 1;
644-
645-
/* Expection. */
646-
vFakePortAssertIfISR_Expect();
647-
vFakePortGetCoreID_ExpectAndReturn( 0 );
648-
vFakePortGetCoreID_ExpectAndReturn( 0 );
649-
vFakePortReleaseTaskLock_Expect();
650-
vFakePortEnableInterrupts_Expect();
651-
652-
/* API Call. */
653-
EXPECT_ASSERT_BREAK( prvCheckForRunStateChange() );
654-
655-
/* Test Verifications */
656-
validate_and_clear_assertions();
657-
}
658-
659625
/**
660626
* @brief vTaskStepTick - assert if scheduler suspended.
661627
*

0 commit comments

Comments
 (0)