]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix use of BOOST_CHECK_MESSAGE in test-dnsrecords_cc.cc 7002/head
authorJosh Soref <jsoref@users.noreply.github.com>
Fri, 28 Sep 2018 12:55:34 +0000 (08:55 -0400)
committerJosh Soref <jsoref@users.noreply.github.com>
Fri, 28 Sep 2018 12:55:34 +0000 (08:55 -0400)
commit758cc255f89c4e60cd77aa6510b8b61c49d39b9e
tree17988cef7f0cbd76caf12afdfaf66a0818ba30a5
parent9e5e6b20088feb601a52b06bf1d55a3d027f849a
Fix use of BOOST_CHECK_MESSAGE in test-dnsrecords_cc.cc

BOOST_CHECK_MESSAGE is designed to take a statement that describes a condition.

When `-l all` is used, it will print the statement, the condition, and
whether or not the condition passed.

With this change, output can appear like this:
test-dnsrecords_cc.cc:72: error: in "test_dnsrecords_cc/test_record_types": record types should be sorted such that 13 >= 21
Checking record type HINFO test #1
test-dnsrecords_cc.cc:72: info: check 'record types should be sorted such that 13 >= 13' has passed
pdns/test-dnsrecords_cc.cc