Skip to content

Commit

Permalink
Remove exceptions for rmw_connext_cpp tests. (#903)
Browse files Browse the repository at this point in the history
* Remove exceptions for rmw_connext_cpp tests.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
  • Loading branch information
clalancette authored Mar 25, 2021
1 parent 2987f9f commit c1a043a
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions rcl/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,12 @@ function(test_target_function)
AMENT_DEPENDENCIES ${rmw_implementation}
)

# TODO(asorbini): Remove these exceptions once ros2/rmw_connext is deprecated.
set(AMENT_GTEST_ARGS "")
if(rmw_implementation MATCHES "rmw_connext(.*)_cpp")
message(STATUS "Skipping test_timer${target_suffix} test.")
set(AMENT_GTEST_ARGS "SKIP_TEST")
endif()

rcl_add_custom_gtest(test_timer${target_suffix}
SRCS rcl/test_timer.cpp
ENV ${rmw_implementation_env_var}
APPEND_LIBRARY_DIRS ${extra_lib_dirs}
LIBRARIES ${PROJECT_NAME} osrf_testing_tools_cpp::memory_tools
AMENT_DEPENDENCIES ${rmw_implementation}
${AMENT_GTEST_ARGS}
)

rcl_add_custom_gtest(test_context${target_suffix}
Expand Down Expand Up @@ -121,33 +113,15 @@ function(test_target_function)
AMENT_DEPENDENCIES ${rmw_implementation} "osrf_testing_tools_cpp"
)

# TODO(asorbini): Remove these exceptions once ros2/rmw_connext is deprecated.
set(AMENT_GTEST_ARGS "")
if(rmw_implementation STREQUAL "rmw_connext_dynamic_cpp")
message(STATUS "Skipping test_graph${target_suffix} test.")
set(AMENT_GTEST_ARGS "SKIP_TEST")
elseif(rmw_implementation STREQUAL "rmw_connext_cpp")
message(STATUS "Increasing test_graph${target_suffix} test timeout.")
set(AMENT_GTEST_ARGS TIMEOUT 180)
endif()

rcl_add_custom_gtest(test_graph${target_suffix}
SRCS rcl/test_graph.cpp
ENV ${rmw_implementation_env_var}
APPEND_LIBRARY_DIRS ${extra_lib_dirs}
LIBRARIES ${PROJECT_NAME}
AMENT_DEPENDENCIES ${rmw_implementation} "osrf_testing_tools_cpp" "test_msgs"
TIMEOUT 120
${AMENT_GTEST_ARGS}
)

# TODO(asorbini): Remove these exceptions once ros2/rmw_connext is deprecated.
set(AMENT_GTEST_ARGS "")
if(rmw_implementation MATCHES "rmw_connext(.*)_cpp")
message(STATUS "Increasing test_info_by_topic${target_suffix} test timeout.")
set(AMENT_GTEST_ARGS TIMEOUT 120)
endif()

rcl_add_custom_gtest(test_info_by_topic${target_suffix}
SRCS rcl/test_info_by_topic.cpp rcl/wait_for_entity_helpers.cpp
ENV ${rmw_implementation_env_var}
Expand Down

0 comments on commit c1a043a

Please sign in to comment.