r4765 - trunk/varnish-cache/bin/varnishtest

phk at varnish-cache.org phk at varnish-cache.org
Wed May 5 10:08:34 CEST 2010


Author: phk
Date: 2010-05-05 10:08:34 +0200 (Wed, 05 May 2010)
New Revision: 4765

Modified:
   trunk/varnish-cache/bin/varnishtest/vtc_varnish.c
Log:
Don't assert varnisttest if vcl fails to compile, fail normally.



Modified: trunk/varnish-cache/bin/varnishtest/vtc_varnish.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc_varnish.c	2010-05-05 08:02:47 UTC (rev 4764)
+++ trunk/varnish-cache/bin/varnishtest/vtc_varnish.c	2010-05-05 08:08:34 UTC (rev 4765)
@@ -574,9 +574,10 @@
 	AZ(vsb_overflowed(vsb));
 
 	u = varnish_ask_cli(v, vsb_data(vsb), NULL);
-	if (u != CLIS_OK)
+	if (u != CLIS_OK) {
 		vtc_log(v->vl, 0, "FAIL VCL does not compile");
-	assert(u == CLIS_OK);
+		return;
+	}
 	vsb_clear(vsb);
 	vsb_printf(vsb, "vcl.use vcl%d", v->vcl_nbr);
 	vsb_finish(vsb);




More information about the varnish-commit mailing list