From ed07aba117a1cdffd75bdb6289028884dbfc6ba7 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 2 Sep 2009 22:08:20 +1200 Subject: [PATCH] Make --disable-mempools control MemPool unit-tests --- test-suite/MemPoolTest.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test-suite/MemPoolTest.cc b/test-suite/MemPoolTest.cc index bafb2891de..fdb6f79b85 100644 --- a/test-suite/MemPoolTest.cc +++ b/test-suite/MemPoolTest.cc @@ -33,6 +33,9 @@ */ #include "squid.h" + +#if !DISABLE_POOLS + #include "MemPool.h" #if HAVE_IOSTREAM @@ -79,11 +82,15 @@ MemPoolTest::run() delete Pool; } +#endif /* DISABLE_POOLS */ + int main (int argc, char **argv) { +#if !DISABLE_POOLS MemPoolTest aTest; aTest.run(); +#endif return 0; } -- 2.47.3