From: Pieter Lexis Date: Mon, 10 Apr 2017 08:09:48 +0000 (+0200) Subject: rec negcache: check retval in test_add_updated_entry X-Git-Tag: rec-4.1.0-alpha1~166^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d434a1381625fece82553ab9a8cd3dfd4fa9e39;p=thirdparty%2Fpdns.git rec negcache: check retval in test_add_updated_entry --- diff --git a/pdns/recursordist/test-negcache_cc.cc b/pdns/recursordist/test-negcache_cc.cc index a2566f1aa5..d13f34a64b 100644 --- a/pdns/recursordist/test-negcache_cc.cc +++ b/pdns/recursordist/test-negcache_cc.cc @@ -152,8 +152,9 @@ BOOST_AUTO_TEST_CASE(test_add_updated_entry) { BOOST_CHECK_EQUAL(cache.size(), 1); NegCache::NegCacheEntry ne; - cache.get(qname, QType(1), now, ne); + bool ret = cache.get(qname, QType(1), now, ne); + BOOST_CHECK(ret); BOOST_CHECK_EQUAL(ne.d_name, qname); BOOST_CHECK_EQUAL(ne.d_auth, auth2); }