]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Disabled forceUDPSendError unit test for Solaris
authorThomas Markwalder <tmark@isc.org>
Thu, 22 May 2014 11:50:11 +0000 (07:50 -0400)
committerThomas Markwalder <tmark@isc.org>
Thu, 22 May 2014 11:50:11 +0000 (07:50 -0400)
The goal of these tests is to exercise error handling of a failed NCR send
in Kea4/Kea6.  Because the test is for a UDP sender is there is no simple way
to make the send fail.  The only way found so far is to attmpt to send it to
0.0.0.0/port 0.  This fails everywhere except Solaris 11. For now the tests
have been disabled for Solaris 11

src/bin/dhcp4/tests/d2_unittest.cc
src/bin/dhcp6/tests/d2_unittest.cc

index baac41fdb84fba9fb4af0320d44d34330f70d4d3..f9ad81c91143570df6b68e80121490256cdd574f 100644 (file)
@@ -287,11 +287,17 @@ TEST_F(Dhcp4SrvD2Test, simpleUDPSend) {
     EXPECT_EQ(0, mgr.getQueueSize());
 }
 
-// Checks that an IO error in sending a request to D2, results in ddns updates being
-// suspended.  This indicates that Dhcp4Srv's error handler has been invoked as expected.
-// Note that this unit test relies on an attempt to send to a server address of 0.0.0.0
-// port 0 fails under all OSs.
+// Checks that an IO error in sending a request to D2, results in ddns updates
+// being suspended.  This indicates that Dhcp4Srv's error handler has been
+// invoked as expected.  Note that this unit test relies on an attempt to send
+// to a server address of 0.0.0.0 port 0 fails, which it does  under all OSs
+// except Solaris 11.
+/// @todo Eventually we should find a way to test this under Solaris.
+#ifndef OS_SOLARIS
 TEST_F(Dhcp4SrvD2Test, forceUDPSendFailure) {
+#else
+TEST_F(Dhcp4SrvD2Test, DISABLED_forceUDPSendFailure) {
+#endif
     // Grab the manager and verify that be default ddns is off
     // and a sender was not started.
     dhcp::D2ClientMgr& mgr = CfgMgr::instance().getD2ClientMgr();
index 1f92c480dd336fad216187c233fdd2556c334a68..469aa43742c276c34e3d095311780341156d11b4 100644 (file)
@@ -294,8 +294,14 @@ TEST_F(Dhcp6SrvD2Test, simpleUDPSend) {
 // Checks that an IO error in sending a request to D2, results in ddns updates
 // being suspended.  This indicates that Dhcp6Srv's error handler has been
 // invoked as expected.  Note that this unit test relies on an attempt to send
-// to a server address of 0.0.0.0 port 0 fails under all OSs.
+// to a server address of 0.0.0.0 port 0 fails, which it does  under all OSs
+// except Solaris 11.
+/// @todo Eventually we should find a way to test this under Solaris.
+#ifndef OS_SOLARIS
 TEST_F(Dhcp6SrvD2Test, forceUDPSendFailure) {
+#else
+TEST_F(Dhcp6SrvD2Test, DISABLED_forceUDPSendFailure) {
+#endif
     // Grab the manager and verify that be default ddns is off
     // and a sender was not started.
     dhcp::D2ClientMgr& mgr = CfgMgr::instance().getD2ClientMgr();