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

Add node construction/destruction API test coverage. #112

Merged
merged 4 commits into from
Jul 22, 2020

Conversation

hidmic
Copy link
Contributor

@hidmic hidmic commented Jul 2, 2020

First stab at testing rmw_create_node() and rmw_destroy_node().

@hidmic
Copy link
Contributor Author

hidmic commented Jul 2, 2020

API documentation is a bit vague. Tests fail for all main RMW implementations, either in a SIGSEGV or a SIGABRT.

@hidmic hidmic force-pushed the hidmic/rmw-node-construction-destruction-tests branch from 7bcced2 to 9edb819 Compare July 7, 2020 15:33
@hidmic
Copy link
Contributor Author

hidmic commented Jul 7, 2020

Depends on #113.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
@hidmic hidmic force-pushed the hidmic/rmw-node-construction-destruction-tests branch from fd4b69c to 4e223d3 Compare July 13, 2020 22:26
@hidmic hidmic marked this pull request as ready for review July 14, 2020 12:41
@hidmic hidmic requested review from Blast545 and brawner July 14, 2020 12:41
@hidmic hidmic changed the title [WIP] Add node construction/destruction API test coverage. Add node construction/destruction API test coverage. Jul 14, 2020
@hidmic
Copy link
Contributor Author

hidmic commented Jul 14, 2020

Running CI up to test_rmw_implementation and all RMW implementations:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Copy link
Contributor

@brawner brawner left a comment

Choose a reason for hiding this comment

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

Looks good to me. Warnings in Mac OSX seem unrelated.

EXPECT_EQ(nullptr, node);
rmw_reset_error();

const char * const invalid_name = "foo bar";
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: instead of invalid_name, rename to 'name_with_spaces' to communicate why it's an invalid name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in ab555d2.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
@hidmic hidmic force-pushed the hidmic/rmw-node-construction-destruction-tests branch from ab555d2 to 23decd6 Compare July 20, 2020 14:47
@hidmic
Copy link
Contributor Author

hidmic commented Jul 21, 2020

@ros-pull-request-builder retest this please.

1 similar comment
@hidmic
Copy link
Contributor Author

hidmic commented Jul 21, 2020

@ros-pull-request-builder retest this please.

@hidmic
Copy link
Contributor Author

hidmic commented Jul 22, 2020

Alright, all green! Merging.

@hidmic hidmic merged commit 56a3d8b into master Jul 22, 2020
@delete-merged-branch delete-merged-branch bot deleted the hidmic/rmw-node-construction-destruction-tests branch July 22, 2020 13:36
ahcorde pushed a commit that referenced this pull request Oct 9, 2020
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
ahcorde pushed a commit that referenced this pull request Oct 21, 2020
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
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.

None yet

3 participants