tests: Prevent false failures of test cases for Ethernet face
Change-Id: I2a767278560209c2e1ee88a3321e6b8e320039fb
Refs: #1393
diff --git a/tests/daemon/mgmt/face-manager.cpp b/tests/daemon/mgmt/face-manager.cpp
index 6ad6197..0f53b93 100644
--- a/tests/daemon/mgmt/face-manager.cpp
+++ b/tests/daemon/mgmt/face-manager.cpp
@@ -671,7 +671,10 @@
shared_ptr<UdpFactory> factory = static_pointer_cast<UdpFactory>(getManager().findFactory("udp"));
BOOST_REQUIRE(static_cast<bool>(factory));
- BOOST_CHECK_GT(factory->getMulticastFaces().size(), 0);
+ if (factory->getMulticastFaces().size() == 0) {
+ BOOST_TEST_MESSAGE("Destroying multicast faces is not tested because "
+ "no UDP multicast faces are available");
+ }
const std::string CONFIG_WITHOUT_MCAST =
"face_system\n"
@@ -783,7 +786,10 @@
static_pointer_cast<EthernetFactory>(getManager().findFactory("ether"));
BOOST_REQUIRE(static_cast<bool>(factory));
- BOOST_CHECK_GT(factory->getMulticastFaces().size(), 0);
+ if (factory->getMulticastFaces().size() == 0) {
+ BOOST_TEST_MESSAGE("Destroying multicast faces is not tested because "
+ "no Ethernet multicast faces are available");
+ }
const std::string CONFIG_WITHOUT_MCAST =
"face_system\n"