Skip to content

Commit

Permalink
Fix unit tests for Kernel PR 1206 (FreeRTOS#1312)
Browse files Browse the repository at this point in the history
PR - FreeRTOS/FreeRTOS-Kernel#1206

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
  • Loading branch information
aggarg authored Dec 17, 2024
1 parent e62f739 commit f6672f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions FreeRTOS/Test/CMock/smp/config_assert/config_assert_utest.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,7 @@ void test_prvYieldForTask_assert_yieldpending_core_is_false( void )
vFakePortEnterCriticalSection_Expect();
/* back */
/* prvYieldForTask */
vFakePortGetCoreID_ExpectAndReturn( 0 );
vFakePortGetCoreID_ExpectAndReturn( 1 );
vFakePortGetCoreID_ExpectAndReturn( 1 );
vFakePortGetCoreID_ExpectAndReturn( 1 );
vFakePortGetCoreID_ExpectAndReturn( 0 );
vFakePortGetCoreID_ExpectAndReturn( 0 );
vFakePortGetCoreID_ExpectAndReturn( 0 );

EXPECT_ASSERT_BREAK( vTaskRemoveFromUnorderedEventList( &xEventListItem,
xItemValue ) );
Expand Down Expand Up @@ -319,7 +313,6 @@ void test_prvSelectHighestPriorityTask_assert_scheduler_running_false( void )

vFakePortGetTaskLock_Expect();
vFakePortGetISRLock_Expect();
vFakePortGetCoreID_ExpectAndReturn( 0 );

EXPECT_ASSERT_BREAK( vTaskSwitchContext( 1 ) );
validate_and_clear_assertions();
Expand Down Expand Up @@ -353,7 +346,6 @@ void test_prvSelectHighestPriorityTask_assert_coreid_ne_runstate( void )

vFakePortGetTaskLock_Expect();
vFakePortGetISRLock_Expect();
vFakePortGetCoreID_ExpectAndReturn( 0 );

listIS_CONTAINED_WITHIN_ExpectAnyArgsAndReturn( pdFALSE );
listLIST_IS_EMPTY_ExpectAnyArgsAndReturn( pdFALSE );
Expand Down Expand Up @@ -477,7 +469,6 @@ void test_vTaskSwitchContext_assert_nexting_count_ne_zero( void )

vFakePortGetTaskLock_Expect();
vFakePortGetISRLock_Expect();
vFakePortGetCoreID_ExpectAndReturn( 1 );

EXPECT_ASSERT_BREAK( vTaskSwitchContext( 1 ) );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -804,8 +804,8 @@ void test_coverage_prvGetExpectedIdleTime_ready_list_eq_1( void )
vFakePortGetCoreID_ExpectAndReturn( 0 );
vFakePortGetTaskLock_Expect();
/* prvCheckForRunStateChange */
vFakePortAssertIfISR_Expect();
vFakePortGetCoreID_ExpectAndReturn( 0 );
vFakePortAssertIfISR_Expect();
/* End of prvCheckForRunStateChange */
vFakePortGetISRLock_Expect();
vFakePortReleaseISRLock_Expect();
Expand Down

0 comments on commit f6672f9

Please sign in to comment.