From: bert hubert Date: Mon, 6 May 2013 19:30:57 +0000 (+0200) Subject: turns out that our unit tests test 127.0.0.2 which is different on our CI-server... X-Git-Tag: auth-3.3-rc1~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d721606c53a4807be8e63954aec792a3dec84a1;p=thirdparty%2Fpdns.git turns out that our unit tests test 127.0.0.2 which is different on our CI-server than locally here. --- diff --git a/pdns/test-nameserver_cc.cc b/pdns/test-nameserver_cc.cc index 7a91b22d13..e24065e708 100644 --- a/pdns/test-nameserver_cc.cc +++ b/pdns/test-nameserver_cc.cc @@ -27,7 +27,7 @@ BOOST_AUTO_TEST_CASE(test_AddressIsUs4) { g_localaddresses.push_back(ComboAddress("0.0.0.0", 53)); BOOST_CHECK_EQUAL(AddressIsUs(local1), true); - BOOST_CHECK_EQUAL(AddressIsUs(local2), false); +// BOOST_CHECK_EQUAL(AddressIsUs(local2), false); BOOST_CHECK_EQUAL(AddressIsUs(Remote), false); g_localaddresses.clear(); @@ -41,15 +41,17 @@ BOOST_AUTO_TEST_CASE(test_AddressIsUs6) { ComboAddress local1("127.0.0.1", 53); ComboAddress local2("127.0.0.2", 53); ComboAddress local3("::1", 53); - ComboAddress NotUs("192.168.255.255", 53); + ComboAddress Remote("192.168.255.255", 53); g_localaddresses.clear(); g_localaddresses.push_back(ComboAddress("::", 53)); BOOST_CHECK_EQUAL(AddressIsUs(local1), true); - BOOST_CHECK_EQUAL(AddressIsUs(local2), false); +// BOOST_CHECK_EQUAL(AddressIsUs(local2), false); BOOST_CHECK_EQUAL(AddressIsUs(local3), true); - BOOST_CHECK_EQUAL(AddressIsUs(NotUs), false); + BOOST_CHECK_EQUAL(AddressIsUs(Remote), false); + Remote.sin4.sin_port = 1; + BOOST_CHECK_EQUAL(AddressIsUs(Remote), false); } BOOST_AUTO_TEST_SUITE_END()