From: Stefan Bühler Date: Thu, 28 Dec 2017 22:07:14 +0000 (+0100) Subject: test-dnsrecords: warn that wire tests are not actually supported X-Git-Tag: dnsdist-1.3.0~172^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aedfdc2817375c7db7805a6a9ccb85bf1a24cda5;p=pdns test-dnsrecords: warn that wire tests are not actually supported --- 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 );