-
Notifications
You must be signed in to change notification settings - Fork 181
Add fault injection macros and unit tests to rcl_lifecycle #731
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
d944fb2 to
22f5b89
Compare
6633f44 to
f9925c3
Compare
cbf2ceb to
72389f8
Compare
f9925c3 to
b0b8305
Compare
95b9d7b to
523fc90
Compare
b0b8305 to
5913420
Compare
523fc90 to
5c492ec
Compare
5913420 to
f0a6baa
Compare
5c492ec to
52b17b4
Compare
f0a6baa to
e26fb5a
Compare
52b17b4 to
931c347
Compare
e26fb5a to
b9ecd0b
Compare
fc4ac47 to
3cbe382
Compare
b9ecd0b to
d98bd5d
Compare
d98bd5d to
5f1e0ad
Compare
|
This was rebased onto master after merging #727. It depends on ros2/rmw#254. This tests this PR branch with current ros 2 branches and the |
5f1e0ad to
64fe090
Compare
64fe090 to
6d9012f
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.
LGTM after solving merge conflicts, please re-run CI after that
Signed-off-by: Stephen Brawner <[email protected]>
Signed-off-by: Stephen Brawner <[email protected]>
6d9012f to
86ac957
Compare
|
Rebasing back on to master after merging #773 |
| RCUTILS_FAULT_INJECTION_TEST( | ||
| { | ||
| // If this in zero initialized outside of this loop, there is potential for a segfault | ||
| // when attempting to init a second time |
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.
@brawner hmm, shouldn't fini take care of leaving rcl_lifecycle_state_machine_t in a known state?
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.
Looks like this was the case before I finalized a second time. This comment is no longer accurate. Moving zero_initialization out of this test.
Signed-off-by: Stephen Brawner <[email protected]>
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 pending green CI
|
ARM64 CI had two flukes. Updated the badge link. Twice. |
* Add fault injection macros and unit tests to rcl_lifecycle Signed-off-by: Stephen Brawner <[email protected]> * Address feedback Signed-off-by: Stephen Brawner <[email protected]> * PR Fixup Signed-off-by: Stephen Brawner <[email protected]>
* Add fault injection macros and unit tests to rcl_lifecycle Signed-off-by: Stephen Brawner <[email protected]> * Address feedback Signed-off-by: Stephen Brawner <[email protected]> * PR Fixup Signed-off-by: Stephen Brawner <[email protected]>
This adds fault injection macros and unit tests for rcl_lifecycle. This depends on #729. CI tests will come shortly.
Signed-off-by: Stephen Brawner [email protected]