From: Stefan Bühler Date: Sat, 30 Dec 2017 15:31:48 +0000 (+0100) Subject: test-dnsrecords: wrap lines in bad value test X-Git-Tag: dnsdist-1.3.0~122^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7771fe086d778dd17c436fcc1d3fefd2e355cf03;p=thirdparty%2Fpdns.git test-dnsrecords: wrap lines in bad value test --- diff --git a/pdns/test-dnsrecords_cc.cc b/pdns/test-dnsrecords_cc.cc index 710dc70d8a..484811a743 100644 --- a/pdns/test-dnsrecords_cc.cc +++ b/pdns/test-dnsrecords_cc.cc @@ -306,10 +306,25 @@ BOOST_AUTO_TEST_CASE(test_record_types_bad_values) { if (broken_marker::BROKEN == broken) { bool success=true; - BOOST_WARN_EXCEPTION( { auto drc = DNSRecordContent::mastermake(q.getCode(), 1, input); pw.startRecord(DNSName("unit.test"), q.getCode()); drc->toPacket(pw); success=false; }, std::exception, test_dnsrecords_cc_predicate ); + BOOST_WARN_EXCEPTION( + { + auto drc = DNSRecordContent::mastermake(q.getCode(), 1, input); + pw.startRecord(DNSName("unit.test"), q.getCode()); + drc->toPacket(pw); + success=false; + }, + std::exception, test_dnsrecords_cc_predicate + ); if (success) REC_FAIL_XSUCCESS(q.getName() << " test #" << n << " has unexpectedly passed"); // a bad record was detected when it was supposed not to be detected } else { - BOOST_CHECK_EXCEPTION( { auto drc = DNSRecordContent::mastermake(q.getCode(), 1, input); pw.startRecord(DNSName("unit.test"), q.getCode()); drc->toPacket(pw); }, std::exception, test_dnsrecords_cc_predicate ); + BOOST_CHECK_EXCEPTION( + { + auto drc = DNSRecordContent::mastermake(q.getCode(), 1, input); + pw.startRecord(DNSName("unit.test"), q.getCode()); + drc->toPacket(pw); + }, + std::exception, test_dnsrecords_cc_predicate + ); } }; }