Skip to content

Commit 5298d3c

Browse files
committed
Skip keyed messages for RMWs other than fastrtps ones.
Signed-off-by: Miguel Company <[email protected]>
1 parent 1ce36a3 commit 5298d3c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

test_communication/CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,26 @@ if(BUILD_TESTING)
241241
set(TEST_MESSAGE_TYPES "")
242242
foreach(message_file ${message_files})
243243
get_filename_component(message_type "${message_file}" NAME_WE)
244+
set(message_has_keys FALSE)
245+
if(
246+
"${message_type}" STREQUAL "KeyedString" OR
247+
"${message_type}" STREQUAL "ComplexNestedKey"
248+
)
249+
set(message_has_keys TRUE)
250+
endif()
251+
252+
# TODO(MiguelCompany): Only fastrtps RMWs interoperate for keyed messages
253+
if(
254+
message_has_keys AND
255+
(NOT "${rmw_implementation1}" STREQUAL "${rmw_implementation2}") AND
256+
(
257+
(NOT rmw_implementation1_is_fastrtps) OR
258+
(NOT rmw_implementation2_is_fastrtps)
259+
)
260+
)
261+
continue()
262+
endif()
263+
244264
# TODO(dirk-thomas) WStrings published by FastRTPS can't be received
245265
# correctly by Connext on macOS
246266
if(

0 commit comments

Comments
 (0)