From 2eaefd26125550543b44099243db05a7389ab6bf Mon Sep 17 00:00:00 2001 From: Miguel Company Date: Tue, 2 Apr 2024 15:44:23 +0200 Subject: [PATCH] Skip keyed messages for RMWs other than fastrtps ones. Signed-off-by: Miguel Company --- test_communication/CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test_communication/CMakeLists.txt b/test_communication/CMakeLists.txt index b3f68777..56adac53 100644 --- a/test_communication/CMakeLists.txt +++ b/test_communication/CMakeLists.txt @@ -203,6 +203,25 @@ if(BUILD_TESTING) set(TEST_MESSAGE_TYPES "") foreach(message_file ${message_files}) get_filename_component(message_type "${message_file}" NAME_WE) + set(message_has_keys FALSE) + if( + "${message_type}" STREQUAL "KeyedString" OR + "${message_type}" STREQUAL "ComplexNestedKey" + ) + set(message_has_keys TRUE) + endif() + + # TODO(MiguelCompany): Only fastrtps RMWs have support for keyed messages + if( + message_has_keys AND + ( + (NOT rmw_implementation1_is_fastrtps) OR + (NOT rmw_implementation2_is_fastrtps) + ) + ) + continue() + endif() + # TODO(dirk-thomas) WStrings published by FastRTPS can't be received # correctly by Connext on macOS if(