From 7771fe086d778dd17c436fcc1d3fefd2e355cf03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20B=C3=BChler?= Date: Sat, 30 Dec 2017 16:31:48 +0100 Subject: [PATCH] test-dnsrecords: wrap lines in bad value test --- pdns/test-dnsrecords_cc.cc | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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 + ); } }; } -- 2.47.2