Skip to content

Commit

Permalink
Also do auth and dnsdist testrunner
Browse files Browse the repository at this point in the history
  • Loading branch information
omoerbeek committed Sep 9, 2024
1 parent 896941f commit 1d10a73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pdns/dnsdistdist/testrunner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#define BOOST_TEST_NO_MAIN

#ifndef BOOST_TEST_DYN_LINK
#define BOOST_TEST_DYN_LINK
#endif
Expand All @@ -31,4 +34,10 @@
#endif
#include <boost/test/unit_test.hpp>

// entry point:
int main(int argc, char* argv[])
{
setenv("BOOST_TEST_RANDOM", "1", 1); // NOLINT(concurrency-mt-unsafe)
return boost::unit_test::unit_test_main(&init_unit_test, argc, argv);
}

1 change: 1 addition & 0 deletions pdns/testrunner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ static bool init_unit_test()
// entry point:
int main(int argc, char* argv[])
{
setenv("BOOST_TEST_RANDOM", "1", 1); // NOLINT(concurrency-mt-unsafe)
S.d_allowRedeclare = true;
return boost::unit_test::unit_test_main(&init_unit_test, argc, argv);
}

0 comments on commit 1d10a73

Please sign in to comment.