Skip to content

Commit

Permalink
Fix tests for common struct name in different modules (#268)
Browse files Browse the repository at this point in the history
* Refs #20052: fix tests

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #20052: update submodule

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

---------

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
  • Loading branch information
JLBuenoLopez committed Mar 27, 2024
1 parent 6d0ccf1 commit 2761055
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ $definitions; separator="\n"$
>>

test(ctx, parent, struct) ::= <<
$if(struct.hasScope)$namespace $struct.scope$ {$endif$
TEST_P($struct.formatedCppTypename$Test, encoding)
{
eprosima::fastdds::dds::DataRepresentationId_t cdr_version {std::get<0>(GetParam())};
Expand All @@ -49,7 +50,6 @@ TEST_P($struct.formatedCppTypename$Test, encoding)
<< " using encoding " << (eprosima::fastdds::dds::DataRepresentationId_t::XCDR_DATA_REPRESENTATION == cdr_version ? "XCDRv1" : "XCDRv2") <<
" ========================================" << std::endl;
using eprosima::fastrtps::rtps::SerializedPayload_t;
$if(struct.hasScope)$ using namespace $struct.scope$;$endif$

$struct.name$PubSubType $struct.name$_type_support;
$struct.name$ $struct.name$_serialization_topic;
Expand Down Expand Up @@ -94,6 +94,8 @@ TEST_P($struct.formatedCppTypename$Test, encoding)
free_string$struct.name$(&$struct.name$_serialization_topic);
$endif$
}

$if(struct.hasScope)$} // namespace $struct.scope$$endif$
>>

struct_type(ctx, parent, struct, member_list) ::= <<
Expand Down

0 comments on commit 2761055

Please sign in to comment.