From: Peter van Dijk Date: Thu, 10 Aug 2017 09:34:50 +0000 (+0200) Subject: skip v6-dependent test when PDNS_TEST_NO_IPV6 is set in environment X-Git-Tag: dnsdist-1.2.0~17^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ff8d3d1913f80d72e4584a957aa89cead69dd81;p=pdns skip v6-dependent test when PDNS_TEST_NO_IPV6 is set in environment --- diff --git a/pdns/test-nameserver_cc.cc b/pdns/test-nameserver_cc.cc index 7ab8a6805..c164d78ac 100644 --- a/pdns/test-nameserver_cc.cc +++ b/pdns/test-nameserver_cc.cc @@ -50,7 +50,7 @@ BOOST_AUTO_TEST_CASE(test_AddressIsUs6) { BOOST_CHECK_EQUAL(AddressIsUs(local1), true); // BOOST_CHECK_EQUAL(AddressIsUs(local2), false); - BOOST_CHECK_EQUAL(AddressIsUs(local3), true); + if(!getenv("PDNS_TEST_NO_IPV6")) BOOST_CHECK_EQUAL(AddressIsUs(local3), true); BOOST_CHECK_EQUAL(AddressIsUs(Remote), false); Remote.sin4.sin_port = 1; BOOST_CHECK_EQUAL(AddressIsUs(Remote), false);