Skip to content

Commit

Permalink
Refs #21745. Perform full DomainParticipantQos comparison in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>
  • Loading branch information
juanlofer-eprosima committed Oct 3, 2024
1 parent 9f5ab64 commit fb0a418
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unittest/dds/participant/ParticipantTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ TEST(ParticipantTests, GetParticipantQosFromXml)

// Check they correspond to the same profile
// NOTE: test_participant_profile is assumed to be the first participant profile in the XML file
check_equivalent_qos(qos, qos_empty_profile);
EXPECT_EQ(qos, qos_empty_profile);

// Load profiles from XML file and get QoS given profile name
DomainParticipantFactory::get_instance()->load_XML_profiles_file(xml_filename);
Expand All @@ -785,7 +785,7 @@ TEST(ParticipantTests, GetParticipantQosFromXml)
RETCODE_OK);

// Check they correspond to the same profile
check_equivalent_qos(qos, qos_from_profile);
EXPECT_EQ(qos, qos_from_profile);

// Test return when a non-existent profile is used
EXPECT_EQ(
Expand Down Expand Up @@ -817,7 +817,7 @@ TEST(ParticipantTests, GetParticipantExtendedQosFromXml)

// Check they correspond to the same profile
// NOTE: test_participant_profile is assumed to be the first participant profile in the XML file
check_equivalent_extended_qos(qos, qos_empty_profile);
EXPECT_EQ(qos, qos_empty_profile);

// Load profiles from XML file and get QoS given profile name
DomainParticipantFactory::get_instance()->load_XML_profiles_file(xml_filename);
Expand All @@ -828,7 +828,7 @@ TEST(ParticipantTests, GetParticipantExtendedQosFromXml)
RETCODE_OK);

// Check they correspond to the same profile
check_equivalent_extended_qos(qos, qos_from_profile);
EXPECT_EQ(qos, qos_from_profile);

// Test return when a non-existent profile is used
EXPECT_EQ(
Expand Down

0 comments on commit fb0a418

Please sign in to comment.