Skip to content

Commit 4b039b8

Browse files
authored
Remove no new core added coverage test for coreAffinitySet (FreeRTOS#1248)
* Remove this unit test due to implementation change
1 parent 520fc22 commit 4b039b8

File tree

1 file changed

+0
-56
lines changed

1 file changed

+0
-56
lines changed

FreeRTOS/Test/CMock/smp/multiple_priorities_no_timeslice/covg_multiple_priorities_no_timeslice_utest.c

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,62 +1337,6 @@ void test_coverage_vTaskCoreAffinitySet_null_task_handle( void )
13371337
TEST_ASSERT_EQUAL( pdTRUE, xYieldPendings[ 0 ] );
13381338
}
13391339

1340-
/**
1341-
* @brief vTaskCoreAffinitySet - no new core for task which is not running.
1342-
*
1343-
* Set core mask for a not running task. The new core mask doesn't enable the task
1344-
* to run on any new core. Verify the core mask set is correct.
1345-
*
1346-
* <b>Coverage</b>
1347-
* @code{c}
1348-
* if( taskTASK_IS_RUNNING( pxTCB ) == pdTRUE )
1349-
* {
1350-
* ...
1351-
* }
1352-
* else
1353-
* {
1354-
* if( ( uxPrevNotAllowedCores & uxCoreAffinityMask ) != 0U )
1355-
* {
1356-
* prvYieldForTask( pxTCB );
1357-
* }
1358-
* }
1359-
* @endcode
1360-
* ( taskTASK_IS_RUNNING( pxTCB ) == pdTRUE ) is false.
1361-
* ( ( uxPrevNotAllowedCores & uxCoreAffinityMask ) != 0U ) is false.
1362-
*/
1363-
void test_coverage_vTaskCoreAffinitySet_task_not_running_no_new_core( void )
1364-
{
1365-
TCB_t xTaskTCB = { NULL };
1366-
UBaseType_t uxCoreAffinityMask;
1367-
UBaseType_t uxNewCoreAffinityMask;
1368-
1369-
/* Setup the variables and structure. */
1370-
/* This task is allowed to run on core 0 and core 1 only. */
1371-
uxCoreAffinityMask = ( 1U << 0 ) | ( 1U << 1 );
1372-
vCreateStaticTestTaskAffinity( &xTaskTCB,
1373-
uxCoreAffinityMask,
1374-
tskIDLE_PRIORITY,
1375-
configNUMBER_OF_CORES,
1376-
pdFALSE );
1377-
xSchedulerRunning = pdTRUE;
1378-
1379-
/* Expectations. */
1380-
vFakePortEnterCriticalSection_StubWithCallback( NULL );
1381-
vFakePortExitCriticalSection_StubWithCallback( NULL );
1382-
vFakePortCheckIfInISR_StopIgnore();
1383-
1384-
vFakePortEnterCriticalSection_Expect();
1385-
vFakePortExitCriticalSection_Expect();
1386-
1387-
/* API call. */
1388-
/* No new core is enabled for this task. */
1389-
uxNewCoreAffinityMask = ( 1U << 0 );
1390-
vTaskCoreAffinitySet( &xTaskTCB, uxNewCoreAffinityMask );
1391-
1392-
/* Validations. */
1393-
TEST_ASSERT_EQUAL( uxNewCoreAffinityMask, xTaskTCB.uxCoreAffinityMask );
1394-
}
1395-
13961340
/**
13971341
* @brief prvYieldForTask - running task with xTaskRunState equals to configNUMBER_OF_CORES.
13981342
*

0 commit comments

Comments
 (0)