Skip to content

Commit

Permalink
Enable test for rcl_get_subscriptions_info_by_topic / rcl_get_publish…
Browse files Browse the repository at this point in the history
…ers_info_by_topic for Cyclone

Signed-off-by: Dennis Potman <dennis.potman@adlinktech.com>
  • Loading branch information
dpotman committed Feb 10, 2020
1 parent 19d53bc commit 46fc602
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rcl/test/rcl/test_info_by_topic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -319,8 +320,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;
Expand Down

0 comments on commit 46fc602

Please sign in to comment.