]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Also do auth and dnsdist testrunner 14634/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 9 Sep 2024 07:27:07 +0000 (09:27 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 9 Sep 2024 07:27:07 +0000 (09:27 +0200)
pdns/dnsdistdist/testrunner.cc
pdns/testrunner.cc

index 66b82aaf6963bf8065a499a62d15279a41671b88..dfa7a34e03b3710ebba69ba1f4ce4bfb87f44539 100644 (file)
@@ -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
 #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);
+}
 
index ef4f16a014e7b012ebf2024a4e27bcbc3b188f24..e4838514b52e1d267ab48c75525edb9710ec0f97 100644 (file)
@@ -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);
 }