]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
test-dnsrecords: check RRTYPE numeric order
authorStefan Bühler <stbuehler@web.de>
Sat, 30 Dec 2017 12:57:24 +0000 (13:57 +0100)
committerStefan Bühler <stbuehler@web.de>
Thu, 4 Jan 2018 17:35:06 +0000 (18:35 +0100)
pdns/test-dnsrecords_cc.cc

index ca875ce8c803621bb1650bdb0f6a215ef9533901..1ebd89e47ba719021dae88d9b08dd3a0f41979cd 100644 (file)
@@ -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);