From: phk Date: Fri, 10 Oct 2008 20:44:14 +0000 (+0000) Subject: Instead of assert, issue a error message on VCL compilation returning X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86546062cf029e1abc37e6a9b3dea4267d4d8251;p=varnish Instead of assert, issue a error message on VCL compilation returning unexpected result codes. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3283 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/vtc_varnish.c b/varnish-cache/bin/varnishtest/vtc_varnish.c index 51ffa633..aa3a4c6f 100644 --- a/varnish-cache/bin/varnishtest/vtc_varnish.c +++ b/varnish-cache/bin/varnishtest/vtc_varnish.c @@ -368,7 +368,10 @@ varnish_vcl(struct varnish *v, const char *vcl, enum cli_status_e expect) 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);