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 #308, Improve SB create pipe error reporting #452

Merged
merged 1 commit into from
Feb 12, 2020

Conversation

CDKnightNASA
Copy link
Contributor

Describe the contribution
Improves error reporting for CFE_SB_CreatePipe()

Testing performed
Standard build process, ran SB unit tests.

Expected behavior changes
Improvement in error reporting when using a pipe name that is already in use, or when the queue limit has been reached.

System(s) tested on:
Debian 9

Additional context
Add any other context about the contribution here.

Contributor Info
[email protected]

Community contributors
N/A

@skliper skliper changed the title fix for #308 Fix #308, Improve SB create pipe error reporting Jan 7, 2020
@skliper
Copy link
Contributor

skliper commented Jan 14, 2020

Squashed, ready for review.

Copy link
Contributor

@skliper skliper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically we may want an EID for each case.

fsw/cfe-core/src/sb/cfe_sb_api.c Show resolved Hide resolved
@CDKnightNASA
Copy link
Contributor Author

CDKnightNASA commented Jan 14, 2020 via email

@jphickey
Copy link
Contributor

This is not sending OSAL return codes in an event - it is sending the CFE-defined event based on the OSAL return code.

Because the actual call (OS_QueueCreate() here) is returning e.g. OS_ERR_NAME_TAKEN and the value is not "rewritten" - it is returned directly from the encapsulating function - then that is what should be checked for here, as opposed CFE_OS_ERR_NAME_TAKEN.

@CDKnightNASA
Copy link
Contributor Author

CDKnightNASA commented Jan 14, 2020 via email

Copy link
Contributor

@skliper skliper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to translate to a request - add unique EID's for each error (per non-open-sourced coding standard).

@CDKnightNASA
Copy link
Contributor Author

Just to translate to a request - add unique EID's for each error (per non-open-sourced coding standard).

copy will implement by next week's CCB

@CDKnightNASA
Copy link
Contributor Author

Just to translate to a request - add unique EID's for each error (per non-open-sourced coding standard).

resolved

Copy link
Contributor

@skliper skliper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirm current unit tests cover these new cases, needs squash

@CDKnightNASA
Copy link
Contributor Author

Confirm current unit tests cover these new cases, needs squash

squashed

@skliper
Copy link
Contributor

skliper commented Jan 22, 2020

CCB 20200122 - Reviewed and approved for CI pending confirmation of test coverage

@skliper skliper added the CCB:Approved Indicates code review and approval by community CCB label Jan 22, 2020
@astrogeco astrogeco dismissed stale reviews from skliper and jphickey February 11, 2020 02:34

Author responded to changes, CCB approved

@astrogeco astrogeco changed the base branch from master to ic-20200213 February 11, 2020 02:36
@astrogeco astrogeco linked an issue Feb 11, 2020 that may be closed by this pull request
@astrogeco astrogeco added this to the 6.8.0 milestone Feb 11, 2020
@astrogeco astrogeco merged commit f26f323 into nasa:ic-20200213 Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates code review and approval by community CCB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CFE_SB_CreatePipe: Improve message when OS_QueueCreate fails
4 participants