From: Amos Jeffries Date: Wed, 2 Sep 2009 10:08:20 +0000 (+1200) Subject: Make --disable-mempools control MemPool unit-tests X-Git-Tag: SQUID_3_2_0_1~752 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed07aba117a1cdffd75bdb6289028884dbfc6ba7;p=thirdparty%2Fsquid.git Make --disable-mempools control MemPool unit-tests --- 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; }