From: bert hubert Date: Tue, 16 Aug 2016 09:21:51 +0000 (+0200) Subject: fix up unit tests for new AtomicCoutnter X-Git-Tag: rec-4.0.2~27^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=040ab84f127cdfe118dae7f82602306426cd1174;p=thirdparty%2Fpdns.git fix up unit tests for new AtomicCoutnter --- diff --git a/pdns/test-statbag_cc.cc b/pdns/test-statbag_cc.cc index 87ee6c7328..3330451458 100644 --- a/pdns/test-statbag_cc.cc +++ b/pdns/test-statbag_cc.cc @@ -17,7 +17,7 @@ using std::string; static void *threadMangler(void* a) { - AtomicCounter* ac = (AtomicCounter*)a; + AtomicCounter* ac=(AtomicCounter*)a; for(unsigned int n=0; n < 1000000; ++n) (*ac)++; return 0; @@ -83,7 +83,7 @@ BOOST_AUTO_TEST_CASE(test_StatBagBasic) { #ifdef UINTPTR_MAX #if UINTPTR_MAX > 0xffffffffULL - BOOST_CHECK_EQUAL(sizeof(AtomicCounter::native_t), 8); + BOOST_CHECK_EQUAL(sizeof(unsigned long), 8); s.set("c", 1ULL<<33); BOOST_CHECK_EQUAL(s.read("c"), (1ULL<<33) ); s.inc("c");