]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make --disable-mempools control MemPool unit-tests
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 2 Sep 2009 10:08:20 +0000 (22:08 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 2 Sep 2009 10:08:20 +0000 (22:08 +1200)
test-suite/MemPoolTest.cc

index bafb2891de620011cd84de7589bb01ce3a09abda..fdb6f79b85a12d71e33d6c1ac134ae40f1624e40 100644 (file)
@@ -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;
 }