[master] 00762b5 Add an assert to show Coverity that we don't expect this to fail.

Poul-Henning Kamp phk at varnish-cache.org
Tue Oct 1 17:56:07 CEST 2013


commit 00762b593aa28a20a6abf9a2637840c0a741e7b8
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Oct 1 15:55:49 2013 +0000

    Add an assert to show Coverity that we don't expect this to fail.

diff --git a/bin/varnishtest/vtc_varnish.c b/bin/varnishtest/vtc_varnish.c
index 9e9733f..12b6dd3 100644
--- a/bin/varnishtest/vtc_varnish.c
+++ b/bin/varnishtest/vtc_varnish.c
@@ -377,6 +377,7 @@ varnish_launch(struct varnish *v)
 	nap = VSS_resolve("127.0.0.1", "0", &ap);
 	AN(nap);
 	v->cli_fd = VSS_listen(ap[0], 1);
+	assert(v->cli_fd > 0);
 	VTCP_myname(v->cli_fd, abuf, sizeof abuf, pbuf, sizeof pbuf);
 
 	AZ(VSB_finish(v->args));



More information about the varnish-commit mailing list