Enable test for rcl_get_subscriptions_info_by_topic / rcl_get_publishers_info_by_topic for Cyclone (#572)
Signed-off-by: Dennis Potman <dennis.potman@adlinktech.com>
This commit is contained in:
parent
41f4fba966
commit
c601464fca
1 changed files with 4 additions and 3 deletions
|
@ -50,11 +50,12 @@ public:
|
||||||
const char * test_graph_node_name = "test_graph_node";
|
const char * test_graph_node_name = "test_graph_node";
|
||||||
rmw_topic_endpoint_info_array_t topic_endpoint_info_array;
|
rmw_topic_endpoint_info_array_t topic_endpoint_info_array;
|
||||||
const char * const topic_name = "valid_topic_name";
|
const char * const topic_name = "valid_topic_name";
|
||||||
bool is_fastrtps;
|
bool is_fastrtps, is_cyclonedds;
|
||||||
|
|
||||||
void SetUp()
|
void SetUp()
|
||||||
{
|
{
|
||||||
is_fastrtps = (std::string(rmw_get_implementation_identifier()).find("rmw_fastrtps") == 0);
|
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_ret_t ret;
|
||||||
rcl_init_options_t init_options = rcl_get_zero_initialized_init_options();
|
rcl_init_options_t init_options = rcl_get_zero_initialized_init_options();
|
||||||
ret = rcl_init_options_init(&init_options, rcl_get_default_allocator());
|
ret = rcl_init_options_init(&init_options, rcl_get_default_allocator());
|
||||||
|
@ -323,8 +324,8 @@ TEST_F(
|
||||||
CLASSNAME(TestInfoByTopicFixture, RMW_IMPLEMENTATION),
|
CLASSNAME(TestInfoByTopicFixture, RMW_IMPLEMENTATION),
|
||||||
test_rcl_get_publishers_subscription_info_by_topic)
|
test_rcl_get_publishers_subscription_info_by_topic)
|
||||||
{
|
{
|
||||||
// This is implemented only in fastrtps currently.
|
// This is implemented only in fastrtps and cyclone currently.
|
||||||
if (!is_fastrtps) {
|
if (!is_fastrtps && !is_cyclonedds) {
|
||||||
GTEST_SKIP();
|
GTEST_SKIP();
|
||||||
}
|
}
|
||||||
rmw_qos_profile_t default_qos_profile = rmw_qos_profile_system_default;
|
rmw_qos_profile_t default_qos_profile = rmw_qos_profile_system_default;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue