Skip to content

Commit f6672f9

Browse files
authored
Fix unit tests for Kernel PR 1206 (FreeRTOS#1312)
PR - FreeRTOS#1206 Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
1 parent e62f739 commit f6672f9

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,7 @@ void test_prvYieldForTask_assert_yieldpending_core_is_false( void )
278278
vFakePortEnterCriticalSection_Expect();
279279
/* back */
280280
/* prvYieldForTask */
281-
vFakePortGetCoreID_ExpectAndReturn( 0 );
282-
vFakePortGetCoreID_ExpectAndReturn( 1 );
283-
vFakePortGetCoreID_ExpectAndReturn( 1 );
284281
vFakePortGetCoreID_ExpectAndReturn( 1 );
285-
vFakePortGetCoreID_ExpectAndReturn( 0 );
286-
vFakePortGetCoreID_ExpectAndReturn( 0 );
287-
vFakePortGetCoreID_ExpectAndReturn( 0 );
288282

289283
EXPECT_ASSERT_BREAK( vTaskRemoveFromUnorderedEventList( &xEventListItem,
290284
xItemValue ) );
@@ -319,7 +313,6 @@ void test_prvSelectHighestPriorityTask_assert_scheduler_running_false( void )
319313

320314
vFakePortGetTaskLock_Expect();
321315
vFakePortGetISRLock_Expect();
322-
vFakePortGetCoreID_ExpectAndReturn( 0 );
323316

324317
EXPECT_ASSERT_BREAK( vTaskSwitchContext( 1 ) );
325318
validate_and_clear_assertions();
@@ -353,7 +346,6 @@ void test_prvSelectHighestPriorityTask_assert_coreid_ne_runstate( void )
353346

354347
vFakePortGetTaskLock_Expect();
355348
vFakePortGetISRLock_Expect();
356-
vFakePortGetCoreID_ExpectAndReturn( 0 );
357349

358350
listIS_CONTAINED_WITHIN_ExpectAnyArgsAndReturn( pdFALSE );
359351
listLIST_IS_EMPTY_ExpectAnyArgsAndReturn( pdFALSE );
@@ -477,7 +469,6 @@ void test_vTaskSwitchContext_assert_nexting_count_ne_zero( void )
477469

478470
vFakePortGetTaskLock_Expect();
479471
vFakePortGetISRLock_Expect();
480-
vFakePortGetCoreID_ExpectAndReturn( 1 );
481472

482473
EXPECT_ASSERT_BREAK( vTaskSwitchContext( 1 ) );
483474

FreeRTOS/Test/CMock/smp/multiple_priorities_no_timeslice_mock/covg_multiple_priorities_no_timeslice_mock_utest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,8 +804,8 @@ void test_coverage_prvGetExpectedIdleTime_ready_list_eq_1( void )
804804
vFakePortGetCoreID_ExpectAndReturn( 0 );
805805
vFakePortGetTaskLock_Expect();
806806
/* prvCheckForRunStateChange */
807-
vFakePortAssertIfISR_Expect();
808807
vFakePortGetCoreID_ExpectAndReturn( 0 );
808+
vFakePortAssertIfISR_Expect();
809809
/* End of prvCheckForRunStateChange */
810810
vFakePortGetISRLock_Expect();
811811
vFakePortReleaseISRLock_Expect();

0 commit comments

Comments
 (0)