Skip to content

Commit 4016605

Browse files
committed
Update #778: Apply whitespace rules to new code
1 parent f18a935 commit 4016605

File tree

6 files changed

+14
-22
lines changed

6 files changed

+14
-22
lines changed

cmake/arch_build.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ function(add_unit_test_exe UT_NAME UT_SRCS)
215215
add_test(${UT_NAME} ${UT_NAME})
216216
endfunction(add_unit_test_exe)
217217

218+
218219
##################################################################
219220
#
220221
# FUNCTION: cfe_exec_do_install

modules/cfe_assert/src/cfe_assert_io.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,23 @@ void UT_BSP_StartTestSegment(uint32 SegmentNumber, const char *SegmentName)
6262
void UT_BSP_DoText(uint8 MessageType, const char *OutputMessage)
6363
{
6464
const char *Prefix;
65-
uint32 MsgEnabled = BSP_UT_Global.CurrVerbosity >> MessageType;
65+
uint32 MsgEnabled = BSP_UT_Global.CurrVerbosity >> MessageType;
6666

6767
if (MsgEnabled & 1)
6868
{
6969
switch (MessageType)
7070
{
7171
case UTASSERT_CASETYPE_ABORT:
72-
Prefix = "ABORT";
72+
Prefix = "ABORT";
7373
break;
7474
case UTASSERT_CASETYPE_FAILURE:
75-
Prefix = "FAIL";
75+
Prefix = "FAIL";
7676
break;
7777
case UTASSERT_CASETYPE_MIR:
78-
Prefix = "MIR";
78+
Prefix = "MIR";
7979
break;
8080
case UTASSERT_CASETYPE_TSF:
81-
Prefix = "TSF";
81+
Prefix = "TSF";
8282
break;
8383
case UTASSERT_CASETYPE_TTF:
8484
Prefix = "TTF";
@@ -93,7 +93,7 @@ void UT_BSP_DoText(uint8 MessageType, const char *OutputMessage)
9393
Prefix = "END";
9494
break;
9595
case UTASSERT_CASETYPE_PASS:
96-
Prefix = "PASS";
96+
Prefix = "PASS";
9797
break;
9898
case UTASSERT_CASETYPE_INFO:
9999
Prefix = "INFO";
@@ -131,7 +131,7 @@ void UT_BSP_EndTest(const UtAssert_TestCounter_t *TestCounters)
131131
}
132132

133133
CFE_ES_WriteToSysLog("TEST COMPLETE: %u tests Segment(s) executed\n\n",
134-
(unsigned int)TestCounters->TestSegmentCount);
134+
(unsigned int)TestCounters->TestSegmentCount);
135135

136136
OS_TaskExit();
137137
}

modules/cfe_assert/src/cfe_assert_main.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* The value is in milliseconds. Normally this shouldn't be more than
4444
* a second or two for apps to all reach their respective main loop(s).
4545
*/
46-
#define CFE_ASSERT_MAX_STARTUP_WAIT 30000
46+
#define CFE_ASSERT_MAX_STARTUP_WAIT 30000
4747

4848
/*
4949
* Small Extra delay before starting tests.
@@ -54,15 +54,14 @@
5454
*
5555
* The value is in milliseconds.
5656
*/
57-
#define CFE_ASSERT_START_DELAY 4000
58-
57+
#define CFE_ASSERT_START_DELAY 4000
5958

6059
/*
6160
* Entry point for this application
6261
*/
6362
void CFE_Assert_AppMain(void)
6463
{
65-
int32 rc;
64+
int32 rc;
6665
uint32 RunStatus;
6766

6867
/*
@@ -113,7 +112,7 @@ void CFE_Assert_AppMain(void)
113112
* registered during startup, then it self-exits.
114113
*/
115114
RunStatus = CFE_ES_RunStatus_APP_RUN;
116-
if(CFE_ES_RunLoop(&RunStatus))
115+
if (CFE_ES_RunLoop(&RunStatus))
117116
{
118117
OS_TaskDelay(CFE_ASSERT_START_DELAY);
119118

@@ -128,8 +127,5 @@ void CFE_Assert_AppMain(void)
128127
RunStatus = CFE_ES_RunStatus_APP_EXIT;
129128
}
130129

131-
132130
CFE_ES_ExitApp(RunStatus);
133131
}
134-
135-

modules/cfe_test/src/cfe_test.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,3 @@ int32 CFE_Test_Init(int32 LibId)
4141
UtTest_Add(ES_Test_AppId, NULL, NULL, "ES AppID");
4242
return CFE_SUCCESS;
4343
}
44-
45-

modules/cfe_test/src/cfe_test.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
#include "uttest.h"
3939
#include "utassert.h"
4040

41-
void ES_Test_AppId(void);
41+
void ES_Test_AppId(void);
4242
int32 CFE_Test_Init(int32 LibId);
4343

44-
4544
#endif /* CFE_TEST_H */

modules/cfe_test/src/es_test.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,12 @@
3333

3434
#include "cfe_test.h"
3535

36-
3736
void ES_Test_AppId(void)
3837
{
3938
uint32 AppId;
40-
char AppNameBuf[OS_MAX_API_NAME+4];
39+
char AppNameBuf[OS_MAX_API_NAME + 4];
4140

4241
UtAssert_INT32_EQ(CFE_ES_GetAppID(&AppId), CFE_SUCCESS);
4342
UtAssert_INT32_EQ(CFE_ES_GetAppName(AppNameBuf, AppId, sizeof(AppNameBuf)), CFE_SUCCESS);
4443
UtAssert_StrCmp(AppNameBuf, "ASSERT_APP", "CFE_ES_GetAppName() returned ASSERT_APP");
4544
}
46-

0 commit comments

Comments
 (0)