r3231 - trunk/varnish-cache/bin/varnishtest

phk at projects.linpro.no phk at projects.linpro.no
Fri Sep 26 16:06:54 CEST 2008


Author: phk
Date: 2008-09-26 16:06:52 +0200 (Fri, 26 Sep 2008)
New Revision: 3231

Modified:
   trunk/varnish-cache/bin/varnishtest/vtc_varnish.c
Log:
Check for the expected exit status from varnishd



Modified: trunk/varnish-cache/bin/varnishtest/vtc_varnish.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc_varnish.c	2008-09-26 13:20:18 UTC (rev 3230)
+++ trunk/varnish-cache/bin/varnishtest/vtc_varnish.c	2008-09-26 14:06:52 UTC (rev 3231)
@@ -306,6 +306,11 @@
 	AZ(close(v->fds[0]));
 	r = wait4(v->pid, &status, 0, NULL);
 	vtc_log(v->vl, 2, "R %d Status: %04x", r, status);
+	if (WIFEXITED(status) && WEXITSTATUS(status) == 2)
+		return;
+	vtc_log(v->vl, 0, "Bad exit code: %04x sig %x exit %x core %x",
+	    status, WTERMSIG(status), WEXITSTATUS(status),
+	    WCOREDUMP(status));
 }
 
 /**********************************************************************




More information about the varnish-commit mailing list