[squid-dev] [PATCH] Selectively enable debugs() statements in unit tests

Amos Jeffries squid3 at treenet.co.nz
Thu Feb 19 09:09:08 UTC 2015


On 18/02/2015 10:01 p.m., Kinkie wrote:
> Hi,
>   sometimes it's useful to be able to rely on debugs output in unit tests.
> 
> This patch enables that. In order to turn on debugs, the unit test .cc file must
> #define ENABLE_DEBUG_SECTION {section_number}
> BEFORE the #include block.
> 

Please wrap the #include with #if ENABLE_DEBUG_SECTION, so this header
can still be used in compat/ unit tests.

And, remove the "+_db_print_stderr" bit that pasted into the copyright.


+1 with those fixes.

Amos


More information about the squid-dev mailing list