From: Josh Soref Date: Fri, 28 Sep 2018 02:29:50 +0000 (-0400) Subject: move arg function to the testrunner X-Git-Tag: dnsdist-1.3.3~91^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bfcae798517b4cc249b6aae6bac36f86c5810cb;p=pdns move arg function to the testrunner This allows running a single test. The arg function is needed by core stuff... --- diff --git a/pdns/test-nameserver_cc.cc b/pdns/test-nameserver_cc.cc index c164d78ac..10b0956a7 100644 --- a/pdns/test-nameserver_cc.cc +++ b/pdns/test-nameserver_cc.cc @@ -8,17 +8,10 @@ #include "iputils.hh" #include "nameserver.hh" #include "statbag.hh" -#include "arguments.hh" #include extern vector g_localaddresses; -ArgvMap &arg() -{ - static ArgvMap theArg; - return theArg; -} - BOOST_AUTO_TEST_SUITE(nameserver_cc) BOOST_AUTO_TEST_CASE(test_AddressIsUs4) { diff --git a/pdns/testrunner.cc b/pdns/testrunner.cc index b4e55adbf..1c6c7cb1a 100644 --- a/pdns/testrunner.cc +++ b/pdns/testrunner.cc @@ -6,6 +6,7 @@ #include "config.h" #endif #include +#include "arguments.hh" #include "auth-packetcache.hh" #include "auth-querycache.hh" #include "statbag.hh" @@ -13,3 +14,8 @@ StatBag S; AuthPacketCache PC; AuthQueryCache QC; +ArgvMap &arg() +{ + static ArgvMap theArg; + return theArg; +}