From aedfdc2817375c7db7805a6a9ccb85bf1a24cda5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20B=C3=BChler?= Date: Thu, 28 Dec 2017 23:07:14 +0100 Subject: [PATCH] test-dnsrecords: warn that wire tests are not actually supported --- pdns/test-dnsrecords_cc.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdns/test-dnsrecords_cc.cc b/pdns/test-dnsrecords_cc.cc index c8250f502..665cfd2de 100644 --- a/pdns/test-dnsrecords_cc.cc +++ b/pdns/test-dnsrecords_cc.cc @@ -271,6 +271,11 @@ BOOST_AUTO_TEST_CASE(test_record_types_bad_values) { vector packet; DNSPacketWriter pw(packet, DNSName("unit.test"), q.getCode()); + if (val.get<2>() == wire) { + BOOST_WARN_MESSAGE(false, "wire checks not supported"); + continue; + } + if (val.get<3>()) { bool success=true; BOOST_WARN_EXCEPTION( { auto drc = DNSRecordContent::mastermake(q.getCode(), 1, val.get<1>()); pw.startRecord(DNSName("unit.test"), q.getCode()); drc->toPacket(pw); success=false; }, std::exception, test_dnsrecords_cc_predicate ); -- 2.50.1