Skip to content

Commit

Permalink
Add logging when the last character of the b_57 string is zero
Browse files Browse the repository at this point in the history
    * connectors/dds4ccm/tests/idl_conversion/receiver/idl_conversion_receiver_exec.cpp:
  • Loading branch information
jwillemsen committed Sep 24, 2024
1 parent d9cbb96 commit 5eea1d3
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,14 @@ namespace IDL_Conversion_Test_Receiver_Impl
const std::string expected ("VALUE_"+std::to_string (datum.iteration () + c));
if (val != expected)
{
if (!val.empty ())
{
if (val.back() == 0)
{
DDS4CCM_TEST_ERROR << "Receiver check - ERROR: last character of "
<< "datum.b_57[" << c << "] is 0" << std::endl;
}
}
DDS4CCM_TEST_ERROR << "Receiver check - ERROR: unexpected value for "
<< "datum.b_57[" << c << "]: expected <" << expected << "> - got <"
<< val << ">" << std::endl;
Expand Down

0 comments on commit 5eea1d3

Please sign in to comment.