From 2ff8d3d1913f80d72e4584a957aa89cead69dd81 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 10 Aug 2017 11:34:50 +0200 Subject: [PATCH] skip v6-dependent test when PDNS_TEST_NO_IPV6 is set in environment --- pdns/test-nameserver_cc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0