r3283 - trunk/varnish-cache/bin/varnishtest
phk at projects.linpro.no
phk at projects.linpro.no
Fri Oct 10 22:44:14 CEST 2008
Author: phk
Date: 2008-10-10 22:44:14 +0200 (Fri, 10 Oct 2008)
New Revision: 3283
Modified:
trunk/varnish-cache/bin/varnishtest/vtc_varnish.c
Log:
Instead of assert, issue a error message on VCL compilation returning
unexpected result codes.
Modified: trunk/varnish-cache/bin/varnishtest/vtc_varnish.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc_varnish.c 2008-10-10 20:39:38 UTC (rev 3282)
+++ trunk/varnish-cache/bin/varnishtest/vtc_varnish.c 2008-10-10 20:44:14 UTC (rev 3283)
@@ -368,7 +368,10 @@
AZ(vsb_overflowed(vsb));
u = varnish_ask_cli(v, vsb_data(vsb), NULL);
- assert(u == expect);
+ if (u != expect)
+ vtc_log(v->vl, 0,
+ "VCL compilation got %u expected %u",
+ u, expect);
if (u == CLIS_OK) {
vsb_clear(vsb);
vsb_printf(vsb, "vcl.use vcl%d", v->vcl_nbr);
More information about the varnish-commit
mailing list