]> git.ipfire.org Git - thirdparty/squid.git/commit - src/tests/testURL.h
Fix the cppunit tests to use setUp() rather than an static constructor to
authorhno <>
Thu, 24 May 2007 02:59:14 +0000 (02:59 +0000)
committerhno <>
Thu, 24 May 2007 02:59:14 +0000 (02:59 +0000)
commit16555581da7b6f45daad5ef6e5f864ea9d3d6989
treec53e313858c72ee68119820b3c3c688e75b62d78
parent560d7d2d1f04563486a14eda712d97f6afa66af0
Fix the cppunit tests to use setUp() rather than an static constructor to
initialize memory pools etc.

Static constructors is dangerous in that you don't know for sure
in which order they will be called. The recent String pool change
where the object size is dynamically calculated on startup is and
example, where the requested pool size had not yet been calculated
before the pools was created.
19 files changed:
src/gopher.cc
src/protos.h
src/tests/testCacheManager.cc
src/tests/testCacheManager.h
src/tests/testDiskIO.cc
src/tests/testDiskIO.h
src/tests/testEvent.cc
src/tests/testEvent.h
src/tests/testEventLoop.cc
src/tests/testEventLoop.h
src/tests/testHttpRequest.cc
src/tests/testHttpRequest.h
src/tests/testStoreEntryStream.cc
src/tests/testStoreEntryStream.h
src/tests/testString.cc
src/tests/testString.h
src/tests/testURL.cc
src/tests/testURL.h
src/url.cc