]> git.ipfire.org Git - thirdparty/squid.git/commit - src/tests/testIcmp.cc
Fix: cppunit tests broken by squid.h defines
authorAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 10 Aug 2008 05:49:14 +0000 (23:49 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 10 Aug 2008 05:49:14 +0000 (23:49 -0600)
commitec94e362cba0cc9b7eecd46bd7b6cd96fec894da
tree3fa5635286f6bd9c999bf4a50f852f23bf8c0224
parentb3d8a9e8ff16554d0bc2854d253e2e832af7faaf
Fix: cppunit tests broken by squid.h defines

In order to promote safe coding and the use of internal accounting API
Squid mangles certain common function definitions such as malloc/calloc.

While this is a great idea for Squid internal code. It's not good when
integrating external cppunit macro libraries. At least one of which in
use performs its own allocation during testing.

This adds an extra layer of protection to prevent redirection with certain
unit-tests where the macros needed clash with Squid.
13 files changed:
src/squid.h
src/tests/testACLMaxUserIP.cc
src/tests/testAuth.cc
src/tests/testBoilerplate.cc
src/tests/testCacheManager.cc
src/tests/testDiskIO.cc
src/tests/testHttpRequestMethod.cc
src/tests/testICMP.cc
src/tests/testStore.cc
src/tests/testStoreController.cc
src/tests/testStoreEntryStream.cc
src/tests/testStoreHashIndex.cc
src/tests/testURLScheme.cc