Browse Source

[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.
Michal 'vorner' Vaner 13 years ago
parent
commit
5ec29b7633
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/lib/asiodns/tests/dns_server_unittest.cc

+ 7 - 0
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);
 }