[master] 06faac1 Define a debug bit to mark that we are running under varnishtest control and always set it in varnishtest

Poul-Henning Kamp phk at FreeBSD.org
Fri Jan 23 00:43:24 CET 2015


commit 06faac1b74d2f96a621439d4b062b5f1381abfbc
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Jan 22 23:21:34 2015 +0000

    Define a debug bit to mark that we are running under varnishtest control
    and always set it in varnishtest

diff --git a/bin/varnishtest/vtc_varnish.c b/bin/varnishtest/vtc_varnish.c
index 1a826ea..2506093 100644
--- a/bin/varnishtest/vtc_varnish.c
+++ b/bin/varnishtest/vtc_varnish.c
@@ -390,6 +390,7 @@ varnish_launch(struct varnish *v)
 	VSB_printf(vsb, " -p syslog_cli_traffic=off");
 	VSB_printf(vsb, " -p sigsegv_handler=on");
 	VSB_printf(vsb, " -p thread_pool_min=10");
+	VSB_printf(vsb, " -p debug=+vtc_mode");
 	VSB_printf(vsb, " -a '%s'", "127.0.0.1:0");
 	VSB_printf(vsb, " -M '%s %s'", abuf, pbuf);
 	VSB_printf(vsb, " -P %s/varnishd.pid", v->workdir);
diff --git a/include/tbl/debug_bits.h b/include/tbl/debug_bits.h
index 81d5e38..ba9400a 100644
--- a/include/tbl/debug_bits.h
+++ b/include/tbl/debug_bits.h
@@ -39,3 +39,4 @@ DEBUG_BIT(VCLREL,		vclrel,		"Rapid VCL release")
 DEBUG_BIT(LURKER,		lurker,		"VSL Ban lurker")
 DEBUG_BIT(ESI_CHOP,		esi_chop,	"Chop ESI fetch to bits")
 DEBUG_BIT(FLUSH_HEAD,		flush_head,	"Flush after http1 head")
+DEBUG_BIT(VTC_MODE,		vtc_mode,	"Varnishtest Mode")



More information about the varnish-commit mailing list