Skip to content

Commit

Permalink
Refs #21165: Add regression test
Browse files Browse the repository at this point in the history
Signed-off-by: eduponz <[email protected]>
  • Loading branch information
EduPonz committed Jun 10, 2024
1 parent 0d62335 commit a417f5d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/unittest/rtps/discovery/EdpTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,27 @@ TEST_F(EdpTests, CheckDataRepresentationCompatibility)
}
}

TEST(MatchingFailureMask, matching_failure_mask_overflow)
{
EDP::MatchingFailureMask mask;

mask.set(EDP::MatchingFailureMask::different_topic);
ASSERT_TRUE(mask.test(EDP::MatchingFailureMask::different_topic));

mask.set(EDP::MatchingFailureMask::inconsistent_topic);
ASSERT_TRUE(mask.test(EDP::MatchingFailureMask::inconsistent_topic));

mask.set(EDP::MatchingFailureMask::incompatible_qos);
ASSERT_TRUE(mask.test(EDP::MatchingFailureMask::incompatible_qos));

mask.set(EDP::MatchingFailureMask::partitions);
ASSERT_TRUE(mask.test(EDP::MatchingFailureMask::partitions));

mask.set(EDP::MatchingFailureMask::different_typeinfo);
ASSERT_TRUE(mask.test(EDP::MatchingFailureMask::different_typeinfo));
}


} // namespace rtps
} // namespace fastrtps
} // namespace eprosima
Expand Down

0 comments on commit a417f5d

Please sign in to comment.