-
Notifications
You must be signed in to change notification settings - Fork 77
Add fault injection macros for use in other packages #254
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
Conversation
897314f to
1861408
Compare
1861408 to
8c51c9f
Compare
Blast545
left a comment
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.
Questions about API in general, might need a follow up PR or a separated discussion
| const char * str, | ||
| rcutils_allocator_t * allocator) | ||
| { | ||
| RCUTILS_CAN_RETURN_WITH_ERROR_OF(RMW_RET_INVALID_ARGUMENT); |
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.
Should this be able of returning BAD_ALLOC as well? I don't know why the output of rcutils_strdup is not checked there
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.
Same with the remaining part of the API receiving an allocator
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.
Opened #269 to add the new API and added a second RCUTILS_CAN_RETURN_WITH_ERROR_OF here.
8c51c9f to
09d4797
Compare
|
Rebased onto master after merging #269, retesting |
hidmic
left a comment
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.
LGTM ! Also, should it be rebased on top of #269? Either that or Github UI got confused.
Signed-off-by: Stephen Brawner <[email protected]>
Signed-off-by: Stephen Brawner <[email protected]>
Signed-off-by: Stephen Brawner <[email protected]>
Signed-off-by: Stephen Brawner <[email protected]>
724a377 to
3f8c2e4
Compare
|
A rebase did the trick |
hidmic
left a comment
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.
Good to go!
* Add fault injection macros for use in other packages Signed-off-by: Stephen Brawner <[email protected]> * cxx/c flags Signed-off-by: Stephen Brawner <[email protected]> * Address feedback Signed-off-by: Stephen Brawner <[email protected]> * lint cmake Signed-off-by: Stephen Brawner <[email protected]>
* Add fault injection macros for use in other packages Signed-off-by: Stephen Brawner <[email protected]> * cxx/c flags Signed-off-by: Stephen Brawner <[email protected]> * Address feedback Signed-off-by: Stephen Brawner <[email protected]> * lint cmake Signed-off-by: Stephen Brawner <[email protected]>
This adds fault injection macros for use in
rcl_actionandrcl_lifecycle.Signed-off-by: Stephen Brawner [email protected]