Skip to content

fix rclcpp/test/rclcpp/CMakeLists.txt to check for the correct targets#2596

Merged
alsora merged 1 commit intorollingfrom
asoragna/executor-tests-target
Aug 5, 2024
Merged

fix rclcpp/test/rclcpp/CMakeLists.txt to check for the correct targets#2596
alsora merged 1 commit intorollingfrom
asoragna/executor-tests-target

Conversation

@alsora
Copy link
Copy Markdown
Collaborator

@alsora alsora commented Aug 4, 2024

The CMake file is checking if ament_add_gtest has effectively added any target (which is not guaranteed).
However, probably due to some copy-paste errors, all the executors tests were checking for the same target.

This had no practical difference right nkw, since if one target exist we should assume that they all exist, but it was not correct.
Indeed if the test_executors would be removed, all the other tests would fail to compile.

…s existance

Signed-off-by: Alberto Soragna <alberto.soragna@gmail.com>
Copy link
Copy Markdown
Member

@christophebedard christophebedard left a comment

Choose a reason for hiding this comment

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

Nice catch!

Copy link
Copy Markdown
Contributor

@clalancette clalancette 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 with green CI.

@fujitatomoya
Copy link
Copy Markdown
Collaborator

CI:

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

@alsora alsora merged commit 2739327 into rolling Aug 5, 2024
@alsora
Copy link
Copy Markdown
Collaborator Author

alsora commented Aug 5, 2024

Merging with 3 approvals and green CI

@alsora alsora deleted the asoragna/executor-tests-target branch August 5, 2024 19:07
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.

4 participants