Skip to content
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 #252, propagate error code after decode failure #255

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

jphickey
Copy link
Collaborator

Describe the contribution
The "bplib_generic_bundle_ingress()" function was not correctly propagating an error status from the underlying decode operation. It was logging the error but using the return value from the bplog macro, which will be BP_SUCCESS.

This also updates the coverage tests to use "INT32_EQ" rather than "UINT32_EQ", as the return value from these API calls is a signed integer.

Fixes #252

Testing performed
Unit test cases updated to cover this case
Pass in bundle using unsupported features

Expected behavior changes
The bplib_cla_ingress() function will return BP_ERROR if the bundle being passed in does not decode successfully

System(s) tested on
Debian

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

The "bplib_generic_bundle_ingress()" function was not correctly
propagating an error status from the underlying decode operation.  It
was logging the error but using the return value from the bplog macro,
which will be BP_SUCCESS.

This also updates the coverage tests to use "INT32_EQ" rather than
"UINT32_EQ", as the return value from these API calls is a signed
integer.
@jphickey jphickey added the ccb:ready Pull request is ready for CCB discussion label Sep 20, 2023
@jphickey jphickey added ccb:approved Pull request has been granted final approval for merging. All required process objectives are met. and removed ccb:ready Pull request is ready for CCB discussion labels Sep 27, 2023
@jphickey
Copy link
Collaborator Author

Reviewed and approved at 2023-09-27 CCB

@jphickey jphickey merged commit e7e5e1c into nasa:main Sep 27, 2023
8 checks passed
@jphickey jphickey deleted the fix-252-ingress-error-code branch November 14, 2023 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ccb:approved Pull request has been granted final approval for merging. All required process objectives are met.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bplib_cla_ingress does not return an error if decoding fails
2 participants