]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make --disable-mempools control MemPool unit-tests
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 3 Sep 2009 12:52:54 +0000 (00:52 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 3 Sep 2009 12:52:54 +0000 (00:52 +1200)
test-suite/MemPoolTest.cc

index fb9ed20aab419a8fbef59c1e4e1b775333216c00..e360baccd22d23e07d9ccf221bebd3b51385faf8 100644 (file)
@@ -33,6 +33,9 @@
  */
 
 #include "squid.h"
+
+#if !DISABLE_POOLS
+
 #include "MemPool.h"
 #include <iostream>
 
@@ -74,11 +77,15 @@ MemPoolTest::run()
     delete Pool;
 }
 
+#endif /* DISABLE_POOLS */
+
 int
 main (int argc, char **argv)
 {
+#if !DISABLE_POOLS
     MemPoolTest aTest;
     aTest.run();
+#endif
     return 0;
 }