From 3bfcae798517b4cc249b6aae6bac36f86c5810cb Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Thu, 27 Sep 2018 22:29:50 -0400 Subject: [PATCH] move arg function to the testrunner This allows running a single test. The arg function is needed by core stuff... --- pdns/test-nameserver_cc.cc | 7 ------- pdns/testrunner.cc | 6 ++++++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/pdns/test-nameserver_cc.cc b/pdns/test-nameserver_cc.cc index c164d78ac6..10b0956a7e 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 b4e55adbf5..1c6c7cb1af 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; +} -- 2.47.2