Skip to content

Commit ee107f2

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

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: test_communication/CMakeLists.txt

+20
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,26 @@ if(BUILD_TESTING)
203203
set(TEST_MESSAGE_TYPES "")
204204
foreach(message_file ${message_files})
205205
get_filename_component(message_type "${message_file}" NAME_WE)
206+
set(message_has_keys FALSE)
207+
if(
208+
"${message_type}" STREQUAL "KeyedString" OR
209+
"${message_type}" STREQUAL "ComplexNestedKey"
210+
)
211+
set(message_has_keys TRUE)
212+
endif()
213+
214+
# TODO(MiguelCompany): Only fastrtps RMWs interoperate for keyed messages
215+
if(
216+
message_has_keys AND
217+
(NOT "${rmw_implementation1}" STREQUAL "${rmw_implementation2}") AND
218+
(
219+
(NOT rmw_implementation1_is_fastrtps) OR
220+
(NOT rmw_implementation2_is_fastrtps)
221+
)
222+
)
223+
continue()
224+
endif()
225+
206226
# TODO(dirk-thomas) WStrings published by FastRTPS can't be received
207227
# correctly by Connext on macOS
208228
if(

0 commit comments

Comments
 (0)