]> err.no Git - varnish/commitdiff
Instead of assert, issue a error message on VCL compilation returning
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 10 Oct 2008 20:44:14 +0000 (20:44 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 10 Oct 2008 20:44:14 +0000 (20:44 +0000)
unexpected result codes.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3283 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/vtc_varnish.c

index 51ffa633c5fa00fc796099f6fbbc9ae3f00e535b..aa3a4c6f5de0b1c1c57c051a57b29ef74d686ad2 100644 (file)
@@ -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);