]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[805] Disable a test that doesn't pass on some OSes
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Tue, 3 Jan 2012 18:07:04 +0000 (19:07 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Tue, 3 Jan 2012 18:07:04 +0000 (19:07 +0100)
The test passes on Linux with epoll, as the (invalid) file descriptor is
inserted right away. The others don't detect the error right at the
time, so it doesn't throw.

src/lib/asiodns/tests/dns_server_unittest.cc

index 5bbfe45342ecd727cde19148bb575bbe9f36e1e8..e0dd1bea44f5c61e502e4fe58554ec92e430cf60 100644 (file)
@@ -618,8 +618,15 @@ TEST_F(DNSServerTestBase, invalidFD) {
     // We abuse DNSServerTestBase for this test, as we don't need the
     // initialization.
     commonSetup();
+    /*
+     FIXME: The UDP server doesn't fail reliably with an invalid FD.
+     We need to find a way to trigger it reliably (it seems epoll
+     asio backend does fail as it tries to insert it right away, but
+     not the others, maybe we could make it run this at last on epoll-based
+     systems).
     EXPECT_THROW(UDPServer(service, -1, AF_INET, checker_, lookup_,
                            answer_), isc::asiolink::IOError);
+    */
     EXPECT_THROW(TCPServer(service, -1, AF_INET, checker_, lookup_,
                            answer_), isc::asiolink::IOError);
 }