r3837 - trunk/varnish-cache/bin/varnishtest

phk at projects.linpro.no phk at projects.linpro.no
Fri Feb 27 14:29:58 CET 2009


Author: phk
Date: 2009-02-27 14:29:58 +0100 (Fri, 27 Feb 2009)
New Revision: 3837

Modified:
   trunk/varnish-cache/bin/varnishtest/vtc_varnish.c
Log:
Change assert to error



Modified: trunk/varnish-cache/bin/varnishtest/vtc_varnish.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc_varnish.c	2009-02-27 12:17:52 UTC (rev 3836)
+++ trunk/varnish-cache/bin/varnishtest/vtc_varnish.c	2009-02-27 13:29:58 UTC (rev 3837)
@@ -424,6 +424,8 @@
 	AZ(vsb_overflowed(vsb));
 
 	u = varnish_ask_cli(v, vsb_data(vsb), NULL);
+	if (u != CLIS_OK)
+		vtc_log(v->vl, 0, "FAIL VCL does not compile");
 	assert(u == CLIS_OK);
 	vsb_clear(vsb);
 	vsb_printf(vsb, "vcl.use vcl%d", v->vcl_nbr);



More information about the varnish-commit mailing list