]> granicus.if.org Git - pdns/commitdiff
skip v6-dependent test when PDNS_TEST_NO_IPV6 is set in environment
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 10 Aug 2017 09:34:50 +0000 (11:34 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 10 Aug 2017 13:10:33 +0000 (15:10 +0200)
pdns/test-nameserver_cc.cc

index 7ab8a6805c47a1eb877db3b437ed6107a8b40d38..c164d78ac64484c0450a291a3f25d201e80297b5 100644 (file)
@@ -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);