Skip to content

Commit

Permalink
Actually skip the gtest_subscription test on Connext. (#544)
Browse files Browse the repository at this point in the history
After a relatively recent refactoring, the old way we
were marking to skip the test no longer worked (because
in the new system, there are no targets that are actually
named gtest_subscription__rmw_connextdds).  Use another
method to skip the test.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
  • Loading branch information
clalancette committed Apr 10, 2024
1 parent c90f086 commit b18cfda
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test_rclcpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -366,13 +366,19 @@ if(BUILD_TESTING)
${rmw_implementation_env_var}
)

# TODO(clalancette): Under load, the gtest_subscription__rmw_connextdds test fails deep in the
# bowels of Connext; see https://github.com/ros2/rmw_connextdds/issues/136 for details. Skip it
# for now so we can keep CI green.
ament_add_gtest_test(gtest_subscription
TEST_NAME gtest_subscription${target_suffix}
APPEND_LIBRARY_DIRS "${append_library_dirs}"
TIMEOUT 60
ENV
${rmw_implementation_env_var}
)
if("${rmw_implementation}" STREQUAL "rmw_connextdds")
ament_add_test_label(gtest_subscription${target_suffix} xfail)
endif()

ament_add_gtest_test(gtest_multiple_service_calls
TEST_NAME gtest_multiple_service_calls${target_suffix}
Expand Down Expand Up @@ -517,13 +523,6 @@ if(BUILD_TESTING)

get_available_rmw_implementations(rmw_implementations)
call_for_each_rmw_implementation(test_target)

# TODO(clalancette): Under load, the gtest_subscription__rmw_connextdds test fails deep in the
# bowels of Connext; see https://github.com/ros2/rmw_connextdds/issues/136 for details. Mark it
# as xfail for now so we can keep CI green.
if(TARGET gtest_subscription__rmw_connextdds)
ament_add_test_label(gtest_subscription__rmw_connextdds xfail)
endif()
endif() # BUILD_TESTING

# TODO should not install anything
Expand Down

0 comments on commit b18cfda

Please sign in to comment.