Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logging when the last character of the b_57 string is zero #445

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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