r4370 - trunk/varnish-cache/bin/varnishtest

phk at projects.linpro.no phk at projects.linpro.no
Wed Nov 25 13:48:43 CET 2009


Author: phk
Date: 2009-11-25 13:48:43 +0100 (Wed, 25 Nov 2009)
New Revision: 4370

Modified:
   trunk/varnish-cache/bin/varnishtest/vtc_http.c
Log:
Log write errors instead of asserting them.



Modified: trunk/varnish-cache/bin/varnishtest/vtc_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc_http.c	2009-11-25 10:18:19 UTC (rev 4369)
+++ trunk/varnish-cache/bin/varnishtest/vtc_http.c	2009-11-25 12:48:43 UTC (rev 4370)
@@ -138,7 +138,8 @@
 	AZ(vsb_overflowed(hp->vsb));
 	vtc_dump(hp->vl, lvl, pfx, vsb_data(hp->vsb));
 	l = write(hp->fd, vsb_data(hp->vsb), vsb_len(hp->vsb));
-	assert(l == vsb_len(hp->vsb));
+	if (l != vsb_len(hp->vsb)) 
+		vtc_log(hp->vl, 0, "Write failed: %s", strerror(errno));
 }
 
 /**********************************************************************



More information about the varnish-commit mailing list