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 NodeOptions assignment operator (backport #2656) #2660

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Oct 30, 2024

While working with NodeOptions, I realized "enable_logger_service" was copied with the assignment operator.
Here is a little PR to fix the issue. I also added some additional checks for primitives members in TEST(TestNodeOptions, copy).

Let me know what you think


This is an automatic backport of pull request #2656 done by Mergify.

* Fix NodeOptions assignment operator

Also copy the enable_logger_service_ member during the assignment operation

* Add more checks for NodeOptions copy test

* Set non default values by avoiding the copy-assignement

Signed-off-by: Romain DESILLE <[email protected]>
Co-authored-by: Christophe Bedard <[email protected]>
(cherry picked from commit 9b65494)
@fujitatomoya
Copy link
Collaborator

Pulls: #2660
Gist: https://gist.githubusercontent.com/fujitatomoya/25a7b441c5b5a4f931f776cfe21df58a/raw/d9294ed334d202928eac7ab4153988aa62b0d39e/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp
TEST args: --packages-above rclcpp
ROS Distro: jazzy
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/14756

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

@christophebedard
Copy link
Member

CI looks good, so let's go ahead.

@christophebedard christophebedard merged commit 99b3803 into jazzy Nov 7, 2024
3 checks passed
@christophebedard christophebedard deleted the mergify/bp/jazzy/pr-2656 branch November 7, 2024 17:48
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