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

Fix ODR errors with gmock #967

Merged
merged 6 commits into from
Apr 8, 2023
Merged

Fix ODR errors with gmock #967

merged 6 commits into from
Apr 8, 2023

Conversation

methylDragon
Copy link
Contributor

The test fixture is explicitly linking against gmock, but tests get linked again as a result of the ament_add_gmock call.

This causes an ODR violation, but it didn't seem to cause any issues with tests.
Running the QOS tests with asan causes ODR violations though.

Signed-off-by: methylDragon <methylDragon@gmail.com>
@methylDragon
Copy link
Contributor Author

methylDragon commented Apr 6, 2023

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status Rebuilding with fixes (though not optimal...): Build Status

@methylDragon methylDragon force-pushed the ch3/fix-odr branch 7 times, most recently from 2453634 to 84422aa Compare April 7, 2023 01:42
Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: methylDragon <methylDragon@gmail.com>
@methylDragon
Copy link
Contributor Author

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

Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

lgtm, it's a kind of ugly workaround, but after debugging this with @methylDragon I think this is the easiest way to satisfy Windows.

@wjwwood wjwwood merged commit cc9b8e1 into rolling Apr 8, 2023
@delete-merged-branch delete-merged-branch bot deleted the ch3/fix-odr branch April 8, 2023 00:12
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