From efaeb353a9375ddef62f3b03a69cbf776d164fae Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 13 Jun 2023 11:35:20 +0200 Subject: [PATCH] Fix build of speedtest and make sure it gets built automatically to avoid bitrot --- pdns/Makefile.am | 4 +++- pdns/speedtest.cc | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pdns/Makefile.am b/pdns/Makefile.am index 88229c32a7..3424cbc7c9 100644 --- a/pdns/Makefile.am +++ b/pdns/Makefile.am @@ -1504,8 +1504,10 @@ pdns_control_LDFLAGS = \ $(AM_LDFLAGS) \ $(LIBCRYPTO_LDFLAGS) +noinst_PROGRAMS = speedtest + if UNIT_TESTS -noinst_PROGRAMS = testrunner +noinst_PROGRAMS += testrunner if HAVE_BOOST_GE_148 TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=message SRCDIR='$(srcdir)' TESTS=testrunner diff --git a/pdns/speedtest.cc b/pdns/speedtest.cc index 9c7b5264a1..1447080f2c 100644 --- a/pdns/speedtest.cc +++ b/pdns/speedtest.cc @@ -673,7 +673,7 @@ struct ParsePacketTest rr.qname=i->first.d_name; rr.ttl=i->first.d_ttl; - rr.content=i->first.d_content->getZoneRepresentation(); // this should be the serialised form + rr.content=i->first.getContent()->getZoneRepresentation(); // this should be the serialised form lwr.d_result.push_back(rr); } -- 2.47.2