mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-10 13:45:07 -05:00
Add uncrustify github workflow (#659)
* Add uncrustify github workflow * Fix exclusion pattern * fix find expression * exclude uncrustify files * Uncrustify common demo and test files * exlude white space checking files * Fix EOL whitespace checker * Remove whitespaces from EOL * Fix space at EOL * Fix find spaces at EOL Co-authored-by: Archit Aggarwal <architag@amazon.com>
This commit is contained in:
parent
dd80d615b5
commit
ae92d8c6ee
191 changed files with 17540 additions and 17102 deletions
|
|
@ -126,7 +126,7 @@ void vConfigureTimerForRunTimeStats( void ); /* Prototype of function that in
|
|||
{ \
|
||||
vFakeAssert( false, __FILE__, __LINE__ ); \
|
||||
} \
|
||||
} while ( 0 )
|
||||
} while( 0 )
|
||||
|
||||
#define mtCOVERAGE_TEST_MARKER() __asm volatile ( "NOP" )
|
||||
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@ void test_xEventGroupStaticCreate_Success( void )
|
|||
|
||||
/*!
|
||||
* @brief validate statically creating and deleting a new RTOS event group,
|
||||
*
|
||||
*
|
||||
*/
|
||||
void test_xEventGroupStaticCreate_InvalidInput_Failed( void )
|
||||
{
|
||||
|
|
@ -435,7 +435,7 @@ void test_xEventGroupWaitBits_WhenNoBitWasSet_WaitForBoth_ClearBit_Success( void
|
|||
vListInitialise_Expect( 0 );
|
||||
vListInitialise_IgnoreArg_pxList();
|
||||
vListInitialise_ReturnThruPtr_pxList( pxListTemp );
|
||||
|
||||
|
||||
/* Expectation of Function: xEventGroupWaitBits */
|
||||
vTaskSuspendAll_Ignore();
|
||||
xTaskGetSchedulerState_IgnoreAndReturn( taskSCHEDULER_SUSPENDED );
|
||||
|
|
@ -463,7 +463,7 @@ void test_xEventGroupWaitBits_WhenNoBitWasSet_WaitForBoth_ClearBit_Success( void
|
|||
}
|
||||
|
||||
/*!
|
||||
* @brief validate non-block waiting on for either one bits is set when currently no bits are set.
|
||||
* @brief validate non-block waiting on for either one bits is set when currently no bits are set.
|
||||
* Don't clear the bit before return.
|
||||
* @coverage xEventGroupWaitBits
|
||||
*/
|
||||
|
|
@ -486,7 +486,7 @@ void test_xEventGroupWaitBits_WhenNoBitWasSet_NonBlock_WaitForEither_NoClear_Suc
|
|||
StaticEventGroup_t xCreatedEventGroup = { 0 };
|
||||
xEventGroupHandle = xEventGroupCreateStatic( &xCreatedEventGroup );
|
||||
uxBitsSetVal = xEventGroupGetBits( xEventGroupHandle );
|
||||
|
||||
|
||||
/* API to Test */
|
||||
uxBitsGetVal = xEventGroupWaitBits(
|
||||
xEventGroupHandle, /* The event group being tested. */
|
||||
|
|
@ -500,7 +500,7 @@ void test_xEventGroupWaitBits_WhenNoBitWasSet_NonBlock_WaitForEither_NoClear_Suc
|
|||
}
|
||||
|
||||
/*!
|
||||
* @brief validate waiting on for either one bits. The function should return when one bits are set.
|
||||
* @brief validate waiting on for either one bits. The function should return when one bits are set.
|
||||
* Don't clear the bit before return.
|
||||
* @coverage xEventGroupWaitBits
|
||||
*/
|
||||
|
|
@ -528,7 +528,7 @@ void test_xEventGroupWaitBits_WhenBitWasSet_WaitForEither_NoClear_Success( void
|
|||
const TickType_t xTicksToWait = 100 / portTICK_PERIOD_MS;
|
||||
StaticEventGroup_t xCreatedEventGroup = { 0 };
|
||||
xEventGroupHandle = xEventGroupCreateStatic( &xCreatedEventGroup );
|
||||
uxBitsSetVal = xEventGroupSetBits( xEventGroupHandle, BIT_0 ); /* BIT_0 was set */
|
||||
uxBitsSetVal = xEventGroupSetBits( xEventGroupHandle, BIT_0 ); /* BIT_0 was set */
|
||||
|
||||
/* API to Test */
|
||||
uxBitsSetVal = xEventGroupWaitBits(
|
||||
|
|
@ -574,8 +574,8 @@ void test_xEventGroupWaitBits_WhenBitWasSet_WaitForBoth_WithClear_Success( void
|
|||
const TickType_t xTicksToWait = 100 / portTICK_PERIOD_MS;
|
||||
StaticEventGroup_t xCreatedEventGroup = { 0 };
|
||||
xEventGroupHandle = xEventGroupCreateStatic( &xCreatedEventGroup );
|
||||
uxBitsSetVal = xEventGroupSetBits( xEventGroupHandle, BIT_0 ); /* BIT_0 was set */
|
||||
uxBitsSetVal = xEventGroupSetBits( xEventGroupHandle, BIT_4 ); /* BIT_4 was set */
|
||||
uxBitsSetVal = xEventGroupSetBits( xEventGroupHandle, BIT_0 ); /* BIT_0 was set */
|
||||
uxBitsSetVal = xEventGroupSetBits( xEventGroupHandle, BIT_4 ); /* BIT_4 was set */
|
||||
TEST_ASSERT_EQUAL( BIT_0 | BIT_4, uxBitsSetVal );
|
||||
|
||||
/* API to Test */
|
||||
|
|
@ -594,7 +594,7 @@ void test_xEventGroupWaitBits_WhenBitWasSet_WaitForBoth_WithClear_Success( void
|
|||
|
||||
/*!
|
||||
* @brief validate tasks sync on event bits:
|
||||
* Set BIT_0 before reach the sync point and wait for all sync bits are set.
|
||||
* Set BIT_0 before reach the sync point and wait for all sync bits are set.
|
||||
* Should return due to timeout.
|
||||
* @coverage xEventGroupSync
|
||||
*/
|
||||
|
|
@ -611,7 +611,7 @@ void test_xEventGroupSync_SetBits_BlockWait_NotSynced_Success( void )
|
|||
listGET_NEXT_ExpectAnyArgsAndReturn( ( ListItem_t * ) NULL );
|
||||
xTaskResumeAll_IgnoreAndReturn( 1 );
|
||||
listGET_LIST_ITEM_VALUE_IgnoreAndReturn( 0 );
|
||||
|
||||
|
||||
/* Expectation of Function: xEventGroupSync */
|
||||
xTaskGetSchedulerState_IgnoreAndReturn( taskSCHEDULER_SUSPENDED );
|
||||
vTaskPlaceOnUnorderedEventList_Ignore();
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
{ \
|
||||
TEST_ASSERT_EQUAL( configASSERT_E, e ); \
|
||||
} \
|
||||
} while ( 0 )
|
||||
} while( 0 )
|
||||
|
||||
/* ============================ GLOBAL VARIABLES =========================== */
|
||||
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ void vConfigureTimerForRunTimeStats( void ); /* Prototype of function that in
|
|||
{ \
|
||||
vFakeAssert( false, __FILE__, __LINE__ ); \
|
||||
} \
|
||||
} while ( 0 )
|
||||
} while( 0 )
|
||||
|
||||
|
||||
#define mtCOVERAGE_TEST_MARKER() __asm volatile ( "NOP" )
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ void vConfigureTimerForRunTimeStats( void ); /* Prototype of function that in
|
|||
{ \
|
||||
vFakeAssert( false, __FILE__, __LINE__ ); \
|
||||
} \
|
||||
} while ( 0 )
|
||||
} while( 0 )
|
||||
|
||||
|
||||
#define mtCOVERAGE_TEST_MARKER() __asm volatile ( "NOP" )
|
||||
|
|
|
|||
|
|
@ -57,9 +57,9 @@ static uint32_t ulNumMallocCalls = 0;
|
|||
/* =========================== HELPER FUNCTIONS =========================== */
|
||||
void setxMaskAssertAndAbort( bool mask )
|
||||
{
|
||||
xMaskAssertAndAbort = mask;
|
||||
xMaskAssertAndAbort = mask;
|
||||
}
|
||||
bool getxMaskAssertAndAbort( )
|
||||
bool getxMaskAssertAndAbort()
|
||||
{
|
||||
return xMaskAssertAndAbort;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@
|
|||
|
||||
/* =========================== FUNCTION PROTOTYPES ======================== */
|
||||
void setxMaskAssertAndAbort( bool mask );
|
||||
bool getxMaskAssertAndAbort( );
|
||||
bool getxMaskAssertAndAbort();
|
||||
/* ============================ GLOBAL VARIABLES =========================== */
|
||||
|
||||
/* ================================= MACROS ================================ */
|
||||
|
|
@ -93,7 +93,7 @@ bool getxMaskAssertAndAbort( );
|
|||
} \
|
||||
Catch( e ) \
|
||||
TEST_ASSERT_EQUAL( configASSERT_E, e ); \
|
||||
} while ( 0 )
|
||||
} while( 0 )
|
||||
|
||||
/* ========================== CALLBACK FUNCTIONS =========================== */
|
||||
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ void vConfigureTimerForRunTimeStats( void ); /* Prototype of function that in
|
|||
{ \
|
||||
vFakeAssert( false, __FILE__, __LINE__ ); \
|
||||
} \
|
||||
} while ( 0 )
|
||||
} while( 0 )
|
||||
|
||||
|
||||
#define mtCOVERAGE_TEST_MARKER() __asm volatile ( "NOP" )
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ void vConfigureTimerForRunTimeStats( void ); /* Prototype of function that in
|
|||
{ \
|
||||
vFakeAssert( false, __FILE__, __LINE__ ); \
|
||||
} \
|
||||
} while ( 0 )
|
||||
} while( 0 )
|
||||
|
||||
|
||||
#define mtCOVERAGE_TEST_MARKER() __asm volatile ( "NOP" )
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ void vConfigureTimerForRunTimeStats( void ); /* Prototype of function that in
|
|||
{ \
|
||||
vFakeAssert( false, __FILE__, __LINE__ ); \
|
||||
} \
|
||||
} while ( 0 )
|
||||
} while( 0 )
|
||||
|
||||
|
||||
#define mtCOVERAGE_TEST_MARKER() __asm volatile ( "NOP" )
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ void vConfigureTimerForRunTimeStats( void ); /* Prototype of function that in
|
|||
{ \
|
||||
vFakeAssert( false, __FILE__, __LINE__ ); \
|
||||
} \
|
||||
} while ( 0 )
|
||||
} while( 0 )
|
||||
|
||||
#define mtCOVERAGE_TEST_MARKER() __asm volatile ( "NOP" )
|
||||
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@
|
|||
{ \
|
||||
TEST_ASSERT_EQUAL( configASSERT_E, e ); \
|
||||
} \
|
||||
} while ( 0 )
|
||||
} while( 0 )
|
||||
|
||||
|
||||
/* ============================ GLOBAL VARIABLES =========================== */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue