Skip to content

Simplify and fix allocator memory strategy unit test for connext#1252

Merged
brawner merged 2 commits intomasterfrom
brawner/fix-allocator_memory_strategy-test
Aug 4, 2020
Merged

Simplify and fix allocator memory strategy unit test for connext#1252
brawner merged 2 commits intomasterfrom
brawner/fix-allocator_memory_strategy-test

Conversation

@brawner
Copy link
Copy Markdown
Contributor

@brawner brawner commented Jul 31, 2020

Due to a difference between connext and other rmw implementations, this unit test was failing. I decided to modify this test so that all callback groups are set so group->can_be_taken_from() is set to false before adding one callback group and the associated entities. This let me remove the logic that tracks how many entities are in the basic nodes, since the memory strategy will only ever find those that belong to the callback_group that can be taken from.

Failing example:
https://ci.ros2.org/job/ci_linux/11735/testReport/junit/projectroot/test/test_allocator_memory_strategy/

FastRTPS (plus others)

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

Connext only:

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

Signed-off-by: Stephen Brawner brawner@gmail.com

Loading
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.

3 participants