Test removing assert to fix UT

This commit is contained in:
Aniruddha Kanhere 2024-02-17 02:01:56 +00:00
parent ce86e987de
commit 5e79ee6ee1

View file

@ -3507,7 +3507,7 @@ static BaseType_t prvCreateIdleTasks( void )
BaseType_t xIdleTaskNameIndex;
/* Make sure that the below for loop doesn't go over the configIDLE_TASK_NAME macro. */
configASSERT( sizeof( configIDLE_TASK_NAME ) >= configMAX_TASK_NAME_LEN );
//configASSERT( sizeof( configIDLE_TASK_NAME ) >= configMAX_TASK_NAME_LEN );
for( xIdleTaskNameIndex = ( BaseType_t ) 0; xIdleTaskNameIndex < ( BaseType_t ) configMAX_TASK_NAME_LEN; xIdleTaskNameIndex++ )
{
@ -3520,8 +3520,10 @@ static BaseType_t prvCreateIdleTasks( void )
{
break;
}
else if( xIdleTaskNameIndex >= ( ( BaseType_t ) sizeof( configIDLE_TASK_NAME ) ) )
else if( xIdleTaskNameIndex >= ( BaseType_t ) sizeof( configIDLE_TASK_NAME ) )
{
/* Break out of the loop so that we do not exceed the string
* configIDLE_TASK_NAME. */
break;
}
else