From: Stefan Bühler Date: Sat, 30 Dec 2017 12:57:24 +0000 (+0100) Subject: test-dnsrecords: check RRTYPE numeric order X-Git-Tag: dnsdist-1.3.0~122^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7488639dc48fec66ccc5d6c5f20da8548a2a4558;p=thirdparty%2Fpdns.git test-dnsrecords: check RRTYPE numeric order --- diff --git a/pdns/test-dnsrecords_cc.cc b/pdns/test-dnsrecords_cc.cc index ca875ce8c8..1ebd89e47b 100644 --- a/pdns/test-dnsrecords_cc.cc +++ b/pdns/test-dnsrecords_cc.cc @@ -188,6 +188,7 @@ BOOST_AUTO_TEST_CASE(test_record_types) { for(const cases_t::value_type& val : cases) { QType q(val.get<0>()); if (lq != q.getCode()) n = 0; + BOOST_CHECK_MESSAGE(q.getCode() >= lq, "record types not sorted correctly: " << q.getCode() << " < " << lq); lq = q.getCode(); n++; BOOST_TEST_CHECKPOINT("Checking record type " << q.getName() << " test #" << n);