]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/test-packetcache_cc.cc
Explicitly call reportAllTypes() at test suite init, to avoid almost
[thirdparty/pdns.git] / pdns / test-packetcache_cc.cc
index bd16702662aed97e411faa048d24cbc721f8963b..ededb4c5a31442cc842a9e26c9ca01c31d9027be 100644 (file)
@@ -104,6 +104,7 @@ catch(PDNSException& e) {
 
 BOOST_AUTO_TEST_CASE(test_QueryCacheThreaded) {
   try {
+    g_QCmissing = 0;
     AuthQueryCache QC;
     QC.setMaxEntries(1000000);
     g_QC=&QC;
@@ -206,6 +207,7 @@ BOOST_AUTO_TEST_CASE(test_PacketCacheThreaded) {
     PC.setTTL(3600);
 
     g_PC=&PC;
+    g_QCmissing = 0;
     pthread_t tid[4];
     for(int i=0; i < 4; ++i)
       pthread_create(&tid[i], 0, threadPCMangler, (void*)(i*1000000UL));