-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cFE Integration candidate: Equuleus-rc1+dev8 #2533
Conversation
Corrects some missed branches and lines in the unit test
Corrects name mismatches in the "SendHkCmd" implementations. ES, EVS, and TBL modules had variations on what this command was named internally in the code.
…gister Fix #2386, Split up and simplify control flow in CFE_TBL_Register()
Fix #2530, naming convention for SendHkCmd
@@ -3198,14 +3198,14 @@ | |||
UtAssert_StrnCmp(TblInfo1.LastFileLoaded, MyFilename, sizeof(TblInfo1.LastFileLoaded) - 4, "%s == %s, %ld", | |||
TblInfo1.LastFileLoaded, MyFilename, (long)sizeof(TblInfo1.LastFileLoaded) - 4); | |||
|
|||
if(maxPathLenDiff >= 0) | |||
if (maxPathLenDiff >= 0) |
Check warning
Code scanning / CodeQL
Comparison result is always the same Warning
while ((AccessIndex != CFE_TBL_END_OF_LIST) && (*TblHandlePtr == CFE_TBL_BAD_TABLE_HANDLE)) | ||
{ | ||
if ((CFE_TBL_Global.Handles[AccessIndex].UsedFlag == true) && | ||
CFE_RESOURCEID_TEST_EQUAL(CFE_TBL_Global.Handles[AccessIndex].AppId, ThisAppId) && | ||
(CFE_TBL_Global.Handles[AccessIndex].RegIndex == *RegIndxPtr)) | ||
{ | ||
*TblHandlePtr = AccessIndex; | ||
} | ||
else | ||
{ | ||
AccessIndex = CFE_TBL_Global.Handles[AccessIndex].NextLink; | ||
} | ||
} |
Check warning
Code scanning / CodeQL-coding-standard
Unbounded loop Warning
* | ||
*-----------------------------------------------------------------*/ | ||
|
||
CFE_Status_t CFE_TBL_RestoreTableDataFromCDS(CFE_TBL_RegistryRec_t *RegRecPtr, const char *AppName, const char *Name, |
Check notice
Code scanning / CodeQL
Function too long Note
* See description in header file for argument/return detail | ||
* | ||
*-----------------------------------------------------------------*/ | ||
CFE_Status_t CFE_TBL_CheckForDuplicateRegistration(int16 *RegIndxPtr, const char *TblName, |
Check notice
Code scanning / CodeQL-coding-standard
Function too long Note
* See description in header file for argument/return detail | ||
* | ||
*-----------------------------------------------------------------*/ | ||
void CFE_TBL_RegisterWithCriticalTableRegistry(CFE_TBL_CritRegRec_t *CritRegRecPtr, CFE_TBL_RegistryRec_t *RegRecPtr, |
Check notice
Code scanning / CodeQL
Long function without assertion Note
* | ||
*-----------------------------------------------------------------*/ | ||
|
||
CFE_Status_t CFE_TBL_RestoreTableDataFromCDS(CFE_TBL_RegistryRec_t *RegRecPtr, const char *AppName, const char *Name, |
Check notice
Code scanning / CodeQL
Long function without assertion Note
@@ -42,7 +42,7 @@ | |||
* See description in header file for argument/return detail | |||
* | |||
*-----------------------------------------------------------------*/ | |||
int32 CFE_TBL_HousekeepingCmd(const CFE_MSG_CommandHeader_t *data) | |||
int32 CFE_TBL_SendHkCmd(const CFE_TBL_SendHkCmd_t *data) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
@@ -1319,7 +1319,7 @@ | |||
/* | |||
** Test the function that processes housekeeping request message | |||
*/ | |||
void Test_CFE_TBL_HousekeepingCmd(void) | |||
void Test_CFE_TBL_SendHkCmd(void) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
@@ -443,7 +443,7 @@ | |||
* See description in header file for argument/return detail | |||
* | |||
*-----------------------------------------------------------------*/ | |||
int32 CFE_ES_HousekeepingCmd(const CFE_ES_SendHkCmd_t *data) | |||
int32 CFE_ES_SendHkCmd(const CFE_ES_SendHkCmd_t *data) |
Check notice
Code scanning / CodeQL
Function too long Note
@@ -42,7 +42,7 @@ | |||
* See description in header file for argument/return detail | |||
* | |||
*-----------------------------------------------------------------*/ | |||
int32 CFE_TBL_HousekeepingCmd(const CFE_MSG_CommandHeader_t *data) | |||
int32 CFE_TBL_SendHkCmd(const CFE_TBL_SendHkCmd_t *data) |
Check notice
Code scanning / CodeQL
Function too long Note
@@ -1319,7 +1319,7 @@ | |||
/* | |||
** Test the function that processes housekeeping request message | |||
*/ | |||
void Test_CFE_TBL_HousekeepingCmd(void) | |||
void Test_CFE_TBL_SendHkCmd(void) |
Check notice
Code scanning / CodeQL
Function too long Note
Checklist (Please check before submitting)
Describe the contribution
CFE_TBL_Register()
#2387. Addresses Issue Split up and simplify control flow inCFE_TBL_Register()
#2386Testing performed
cFS Bundle Checks
cFE Checks
Expected behavior changes
See PRs
System(s) tested on
Ubuntu 20.04
Additional context
Add any other context about the contribution here.
Third party code
If included, identify any third party code and provide text file of license
Contributor Info - All information REQUIRED for consideration of pull request
@jphickey
@thnkslprpt