Skip to content

Commit

Permalink
Fix cmakelists
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Brawner <brawner@gmail.com>
  • Loading branch information
brawner committed Aug 1, 2020
1 parent b54ca61 commit 76b38df
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions rclcpp/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@ rosidl_generate_interfaces(${PROJECT_NAME}_test_msgs
SKIP_INSTALL
)

set(GTEST_TIMEOUT_ARGS "")
# Increasing timeout because connext can take a long time to destroy nodes
# TODO(brawner) remove when destroying Node for Connext is resolved. See:
# https://github.com/ros2/rclcpp/issues/1250
if(rmw_implementation STREQUAL "rmw_connext_dynamic_cpp" OR rmw_implementation STREQUAL "rmw_connext_cpp")
message(STATUS "Increasing test_allocator_memory_strategy test timeout.")
set(GTEST_TIMEOUT_ARGS "TIMEOUT 180")
endif()
ament_add_gtest(
test_allocator_memory_strategy
rclcpp/strategies/test_allocator_memory_strategy.cpp
${GTEST_TIMEOUT_ARGS})
TIMEOUT 360)
if(TARGET test_allocator_memory_strategy)
ament_target_dependencies(test_allocator_memory_strategy
"rcl"
Expand Down Expand Up @@ -480,18 +476,13 @@ if(TARGET test_interface_traits)
target_link_libraries(test_interface_traits ${PROJECT_NAME})
endif()

set(GTEST_TIMEOUT_ARGS "")
# TODO(brawner) remove when destroying Node for Connext is resolved. See:
# https://github.com/ros2/rclcpp/issues/1250
if(rmw_implementation STREQUAL "rmw_connext_dynamic_cpp" OR rmw_implementation STREQUAL "rmw_connext_cpp")
message(STATUS "Increasing test_allocator_memory_strategy test timeout.")
set(GTEST_TIMEOUT_ARGS "TIMEOUT 180")
endif()
ament_add_gtest(
test_executors
rclcpp/executors/test_executors.cpp
APPEND_LIBRARY_DIRS "${append_library_dirs}"
${GTEST_TIMEOUT_ARGS})
TIMEOUT 180)
if(TARGET test_executors)
ament_target_dependencies(test_executors
"rcl")
Expand Down

0 comments on commit 76b38df

Please sign in to comment.