Skip to content

Commit 54c2683

Browse files
author
Javier Gil Aviles
committed
Refs #21358: Assert correctiosn fro tests
Signed-off-by: Javier Gil Aviles <javiergil@eprosima.com>
1 parent c87e310 commit 54c2683

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderImpl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ DynamicTypeBuilderImpl::DynamicTypeBuilderImpl(
6161
members_.back())};
6262
if (!member_impl)
6363
{
64+
assert(false);
6465
EPROSIMA_LOG_ERROR(DYN_TYPES,
65-
"Internal error: last member is not a DynamicTypeMemberImpl");
66+
"Internal error: last member is not a DynamicTypeMemberImpl.");
6667
}
6768
else
6869
{

src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,13 @@ void PDPSimple::unmatch_pdp_remote_endpoints(
577577
auto endpoints = dynamic_cast<fastdds::rtps::SimplePDPEndpoints*>(builtin_endpoints_.get());
578578
if (nullptr == endpoints)
579579
{
580+
assert(false);
580581
EPROSIMA_LOG_ERROR(RTPS_PDP,
581582
"unmatch_pdp_remote_endpoints(): builtin_endpoints_ is null or wrong type");
582583
return;
584+
} else
585+
{
586+
assert(true);
583587
}
584588

585589
guid.entityId = c_EntityId_SPDPWriter;

0 commit comments

Comments
 (0)