]> granicus.if.org Git - pdns/commitdiff
test-dnsrecords: warn that wire tests are not actually supported
authorStefan Bühler <stbuehler@web.de>
Thu, 28 Dec 2017 22:07:14 +0000 (23:07 +0100)
committerStefan Bühler <stbuehler@web.de>
Thu, 28 Dec 2017 22:07:14 +0000 (23:07 +0100)
pdns/test-dnsrecords_cc.cc

index c8250f502d80199ea1ed3a88e30ab38be0cd75c0..665cfd2de6edee3d71b404591f4e60b527578bc4 100644 (file)
@@ -271,6 +271,11 @@ BOOST_AUTO_TEST_CASE(test_record_types_bad_values) {
     vector<uint8_t> 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 );