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

[foxy backport] Add check to rcl_node_options_copy for invalid arg (#671) + add tests (#668) #697

Merged
merged 2 commits into from
Jun 24, 2020

Conversation

jacobperron
Copy link
Member

@jacobperron jacobperron commented Jun 23, 2020

Backporting #668 and #671 to Foxy.

It isn't strictly needed to backport #668 to Foxy, but it avoided a conflict when cherry-picking #671 .

I will do a rebase merge to keep the commits separate.

* Add tests for node_options usage
* Add tests for copying options arguments
* Add bad argument tests for wait sets
* Add tests for wait_set_get_allocator function
* Add test for rcl_take_response function
* Change take_request to match take_response without info
* Change specific test for sequence_number
* Add tests for client take failed
* Remove tests already done in nominal setup
* Add bad arguments tests
* Add test for init returning BAD_ALLOC
* Add test for client get_options
* Add test for already init client
* Add bad argument tests
* Add basic test get_default_domain_id
* Add test for rmw to rcl return code function
* Add test for get_localhost_only
* Add tests for localhost expected usage
* Address peer review comments
* Add test for env variable leading to ULONG_MAX
* Change return values to enum in test
* Fix rcl_get_localhost_only return value
* Address peer review comments
* Add unexpected value to get_localhost
* Add reset_rcl_error after expected fails

Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
* Add bug fix for rcl_node_options_copy

If copy source has options->arguments.impl==NULL
this will cause problem when calling fini
on options dst

* Add test case for bug fix
* Return error when passing not init object
* Remove unexpected usage test
* Init options with non empty arguments

Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
@jacobperron jacobperron changed the title [foxy backport] Add check to rcl_node_options_copy for invalid arg (#668) + add tests (#671) [foxy backport] Add check to rcl_node_options_copy for invalid arg (#671) + add tests (#668) Jun 23, 2020
Copy link
Contributor

@Blast545 Blast545 left a comment

Choose a reason for hiding this comment

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

LGTM, let me know if I can help you with the rest of the process

@jacobperron jacobperron merged commit 0e12a0a into foxy Jun 24, 2020
@delete-merged-branch delete-merged-branch bot deleted the jacob/backport_671 branch June 24, 2020 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants