-
Notifications
You must be signed in to change notification settings - Fork 204
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
Fix #2228, Update UTs to use correct cmd types #2229
Conversation
Fix nasa#2228, Update UTs to use correct cmd types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want, I could theoretically take this one and do the updates I suggested. The problem is the change as proposed will break the EDS build. (Fundamental issue is that we don't actually define a real message called NoArgsCmd
in any of these modules; that was just an implementation shortcut to avoid repeating the same definition, so it really shouldn't be referenced outside of the msg.h file).
Update remaining cases where the CFE_MSG_CommandHeader_t was used for a command that had no arguments, replacing it with a real data type that is named according to the command. In particular, this introduces a "SendHkCmd" type into all modules, where previously the HK command used CFE_MSG_CommandHeader_t directly.
@@ -655,7 +655,7 @@ | |||
* See description in header file for argument/return detail | |||
* | |||
*-----------------------------------------------------------------*/ | |||
int32 CFE_ES_HousekeepingCmd(const CFE_MSG_CommandHeader_t *data) | |||
int32 CFE_ES_HousekeepingCmd(const CFE_ES_SendHkCmd_t *data) |
Check notice
Code scanning / CodeQL-coding-standard
Long function without assertion
@@ -613,7 +613,7 @@ | |||
* See description in header file for argument/return detail | |||
* | |||
*-----------------------------------------------------------------*/ | |||
int32 CFE_EVS_ReportHousekeepingCmd(const CFE_MSG_CommandHeader_t *data) | |||
int32 CFE_EVS_ReportHousekeepingCmd(const CFE_EVS_SendHkCmd_t *data) |
Check notice
Code scanning / CodeQL-coding-standard
Long function without assertion
@@ -503,7 +503,7 @@ | |||
* See description in header file for argument/return detail | |||
* | |||
*-----------------------------------------------------------------*/ | |||
int32 CFE_SB_SendHKTlmCmd(const CFE_MSG_CommandHeader_t *data) | |||
int32 CFE_SB_SendHKTlmCmd(const CFE_SB_SendHkCmd_t *data) |
Check notice
Code scanning / CodeQL-coding-standard
Long function without assertion
@@ -655,7 +655,7 @@ | |||
* See description in header file for argument/return detail | |||
* | |||
*-----------------------------------------------------------------*/ | |||
int32 CFE_ES_HousekeepingCmd(const CFE_MSG_CommandHeader_t *data) | |||
int32 CFE_ES_HousekeepingCmd(const CFE_ES_SendHkCmd_t *data) |
Check notice
Code scanning / CodeQL-coding-standard
Function too long
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with the changes now aside from maybe squashing the commits (I kept it separate for now for review purposes)
*Combines:* cFE v7.0.0-rc4+dev242 t0_lab v2.5.0-rc4+dev35 **Includes:** *cFE* - nasa/cFE#2231 - nasa/cFE#2229 - nasa/cFE#2192 *to_lab* - nasa/to_lab#142 Co-authored by: Daniel Knutsen <dmknutsen@users.noreply.github.com> Co-authored by: Justin Figueroa <chillfig@users.noreply.github.com> Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com> Co-authored by: Avi Weiss: <thnkslprpt@users.noreply.github.com>
*Combines:* cFE v7.0.0-rc4+dev242 to_lab v2.5.0-rc4+dev35 **Includes:** *cFE* - nasa/cFE#2231 - nasa/cFE#2229 - nasa/cFE#2192 *to_lab* - nasa/to_lab#142 Co-authored by: Daniel Knutsen <dmknutsen@users.noreply.github.com> Co-authored by: Justin Figueroa <chillfig@users.noreply.github.com> Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com> Co-authored by: Avi Weiss: <thnkslprpt@users.noreply.github.com>
Fix #2228, Update UTs to use correct cmd types
Checklist (Please check before submitting)
Describe the contribution
These are the unit test updates requested by @shion-ito-nasa, and are associated with #2228
The requested change originated from #2220
Testing performed
Build and run all tests'
Expected behavior changes
No impact to behavior
System(s) tested on
Ubuntu 22.04 and 20.04 (workflows)
Contributor Info - All information REQUIRED for consideration of pull request
Dan Knutsen
NASA/Goddard