From 1049c741889cdef2c205126e8b1bab6f0c1a5ea2 Mon Sep 17 00:00:00 2001 From: Dennis Potman Date: Fri, 7 Feb 2020 12:11:29 +0100 Subject: [PATCH] Enable test for rcl_get_subscriptions_info_by_topic / rcl_get_publishers_info_by_topic for Cyclone Signed-off-by: Dennis Potman --- rcl/test/rcl/test_info_by_topic.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rcl/test/rcl/test_info_by_topic.cpp b/rcl/test/rcl/test_info_by_topic.cpp index e1a8aaf4f..2afcbb6c8 100644 --- a/rcl/test/rcl/test_info_by_topic.cpp +++ b/rcl/test/rcl/test_info_by_topic.cpp @@ -50,11 +50,12 @@ class CLASSNAME (TestInfoByTopicFixture, RMW_IMPLEMENTATION) : public ::testing: const char * test_graph_node_name = "test_graph_node"; rmw_topic_endpoint_info_array_t topic_endpoint_info_array; const char * const topic_name = "valid_topic_name"; - bool is_fastrtps; + bool is_fastrtps, is_cyclonedds; void SetUp() { is_fastrtps = (std::string(rmw_get_implementation_identifier()).find("rmw_fastrtps") == 0); + is_cyclonedds = (std::string(rmw_get_implementation_identifier()).find("rmw_cyclonedds") == 0); rcl_ret_t ret; rcl_init_options_t init_options = rcl_get_zero_initialized_init_options(); ret = rcl_init_options_init(&init_options, rcl_get_default_allocator()); @@ -323,8 +324,8 @@ TEST_F( CLASSNAME(TestInfoByTopicFixture, RMW_IMPLEMENTATION), test_rcl_get_publishers_subscription_info_by_topic) { - // This is implemented only in fastrtps currently. - if (!is_fastrtps) { + // This is implemented only in fastrtps and cyclone currently. + if (!is_fastrtps && !is_cyclonedds) { GTEST_SKIP(); } rmw_qos_profile_t default_qos_profile = rmw_qos_profile_system_default;