-
Notifications
You must be signed in to change notification settings - Fork 67
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
Add fault injection macros for use in other packages #254
Conversation
897314f
to
1861408
Compare
1861408
to
8c51c9f
Compare
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
@@ -105,6 +108,8 @@ _rmw_topic_endpoint_info_copy_str( | |||
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 |
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 <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
724a377
to
3f8c2e4
Compare
A rebase did the trick |
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 <brawner@gmail.com> * cxx/c flags Signed-off-by: Stephen Brawner <brawner@gmail.com> * Address feedback Signed-off-by: Stephen Brawner <brawner@gmail.com> * lint cmake Signed-off-by: Stephen Brawner <brawner@gmail.com>
* Add fault injection macros for use in other packages Signed-off-by: Stephen Brawner <brawner@gmail.com> * cxx/c flags Signed-off-by: Stephen Brawner <brawner@gmail.com> * Address feedback Signed-off-by: Stephen Brawner <brawner@gmail.com> * lint cmake Signed-off-by: Stephen Brawner <brawner@gmail.com>
This adds fault injection macros for use in
rcl_action
andrcl_lifecycle
.Signed-off-by: Stephen Brawner brawner@gmail.com