-
Notifications
You must be signed in to change notification settings - Fork 202
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+dev12 #2563
Conversation
For secondary header checks, different functions may (or may not) be implemented on commands vs telemetry. The functional test must not assume one or the other is implemented. It should dynamically check both checksum and timestamp based on the return value of the API call.
Fix #2536, msg api test buffer overrun
Fix #2561, send CMake message to stdout instead of stderr
UtAssert_INT32_EQ(CFE_MSG_SetType(CFE_MSG_PTR(cmd2), CFE_MSG_Type_Cmd), CFE_SUCCESS); | ||
/* test generate-checksum on commands */ | ||
CFE_Assert_STATUS_STORE(CFE_MSG_ValidateChecksum(CFE_MSG_PTR(cmd), &isValid)); | ||
if (CFE_Assert_STATUS_MAY_BE(CFE_SUCCESS)) |
Check warning
Code scanning / CodeQL
Side effect in a Boolean expression Warning test
UtAssert_INT32_EQ(CFE_MSG_ValidateChecksum(CFE_MSG_PTR(cmd), &isValid), CFE_SUCCESS); | ||
UtAssert_BOOL_TRUE(isValid); | ||
} | ||
else if (CFE_Assert_STATUS_MAY_BE(CFE_MSG_WRONG_MSG_TYPE)) |
Check warning
Code scanning / CodeQL
Side effect in a Boolean expression Warning test
UtAssert_True(isValid, "Checksum isValid (%d) = true", isValid); | ||
/* test generate-checksum on telemetry */ | ||
CFE_Assert_STATUS_STORE(CFE_MSG_ValidateChecksum(CFE_MSG_PTR(tlm), &isValid)); | ||
if (CFE_Assert_STATUS_MAY_BE(CFE_SUCCESS)) |
Check warning
Code scanning / CodeQL
Side effect in a Boolean expression Warning test
if (!CFE_Assert_STATUS_MAY_BE(CFE_SUCCESS)) | ||
/* Check if GetMsgTime is implemented on commands */ | ||
CFE_Assert_STATUS_STORE(CFE_MSG_GetMsgTime(CFE_MSG_PTR(cmd), &msgTime)); | ||
if (CFE_Assert_STATUS_MAY_BE(CFE_SUCCESS)) |
Check warning
Code scanning / CodeQL
Side effect in a Boolean expression Warning test
UtAssert_UINT32_EQ(CFE_TIME_Compare(msgTime, currentTime), CFE_TIME_EQUAL); | ||
/* Check if GetMsgTime is implemented on telemetry */ | ||
CFE_Assert_STATUS_STORE(CFE_MSG_GetMsgTime(CFE_MSG_PTR(tlm), &msgTime)); | ||
if (CFE_Assert_STATUS_MAY_BE(CFE_SUCCESS)) |
Check warning
Code scanning / CodeQL
Side effect in a Boolean expression Warning test
UtAssert_INT32_EQ(CFE_MSG_ValidateChecksum(CFE_MSG_PTR(tlm), &isValid), CFE_SUCCESS); | ||
UtAssert_BOOL_TRUE(isValid); | ||
} | ||
else if (CFE_Assert_STATUS_MAY_BE(CFE_MSG_WRONG_MSG_TYPE)) |
Check warning
Code scanning / CodeQL
Side effect in a Boolean expression Warning test
|
||
CFE_Assert_STATUS_STORE(CFE_MSG_SetMsgTime(CFE_MSG_PTR(cmd2), currentTime)); | ||
if (!CFE_Assert_STATUS_MAY_BE(CFE_SUCCESS)) | ||
else if (CFE_Assert_STATUS_MAY_BE(CFE_MSG_WRONG_MSG_TYPE)) |
Check warning
Code scanning / CodeQL
Side effect in a Boolean expression Warning test
UtAssert_INT32_EQ(CFE_MSG_GetMsgTime(CFE_MSG_PTR(tlm), &msgTime), CFE_SUCCESS); | ||
UtAssert_UINT32_EQ(CFE_TIME_Compare(msgTime, currentTime), CFE_TIME_EQUAL); | ||
} | ||
else if (CFE_Assert_STATUS_MAY_BE(CFE_MSG_WRONG_MSG_TYPE)) |
Check warning
Code scanning / CodeQL
Side effect in a Boolean expression Warning test
Checklist (Please check before submitting)
Describe the contribution
Testing 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
@Codym48