]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use assert instead of BOOST_CHECK in a tight loop as BOOST_CHECK is reaaaaally slow. 11305/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 9 Feb 2022 10:58:34 +0000 (11:58 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 9 Feb 2022 10:58:34 +0000 (11:58 +0100)
pdns/test-dnsname_cc.cc

index f1fca240c9cec9253e2c744bb4dd7201950360fe..41f882df531fb41e741ff6db1a5071f12d1fea8f 100644 (file)
@@ -431,7 +431,7 @@ BOOST_AUTO_TEST_CASE(test_QuestionHash) {
   for(unsigned int n = 0; n < 100000; ++n) {
     packet.clear();
     DNSPacketWriter dpw(packet, DNSName(std::to_string(n) + "." + std::to_string(n*2) + "."), QType::AAAA);
-    BOOST_CHECK(ok);
+    assert(ok);
     counts[hashQuestion(&packet[0], packet.size() - 4, 0, ok) % counts.size()]++;
   }