From: Michal 'vorner' Vaner Date: Tue, 3 Jan 2012 18:07:04 +0000 (+0100) Subject: [805] Disable a test that doesn't pass on some OSes X-Git-Tag: trac2351_base~304^2~16^2~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ec29b7633767f56675930402ccc7a7b9a1fdd2d;p=thirdparty%2Fkea.git [805] Disable a test that doesn't pass on some OSes 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. --- diff --git a/src/lib/asiodns/tests/dns_server_unittest.cc b/src/lib/asiodns/tests/dns_server_unittest.cc index 5bbfe45342..e0dd1bea44 100644 --- a/src/lib/asiodns/tests/dns_server_unittest.cc +++ b/src/lib/asiodns/tests/dns_server_unittest.cc @@ -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); }