r4296 - branches/2.0/varnish-cache/bin/varnishtest

tfheen at projects.linpro.no tfheen at projects.linpro.no
Thu Oct 8 14:47:16 CEST 2009


Author: tfheen
Date: 2009-10-08 14:47:16 +0200 (Thu, 08 Oct 2009)
New Revision: 4296

Modified:
   branches/2.0/varnish-cache/bin/varnishtest/vtc_varnish.c
Log:
Merge r4151: Add #ifdef for WCOREDUMP

AIX doesn't have WCOREDUMP, so compilation failed there.  Add #ifdef.

Partially addresses #531.



Modified: branches/2.0/varnish-cache/bin/varnishtest/vtc_varnish.c
===================================================================
--- branches/2.0/varnish-cache/bin/varnishtest/vtc_varnish.c	2009-10-08 12:26:18 UTC (rev 4295)
+++ branches/2.0/varnish-cache/bin/varnishtest/vtc_varnish.c	2009-10-08 12:47:16 UTC (rev 4296)
@@ -326,9 +326,14 @@
 	vtc_log(v->vl, 2, "R %d Status: %04x", r, status);
 	if (WIFEXITED(status) && WEXITSTATUS(status) == 2)
 		return;
+#ifdef WCOREDUMP
 	vtc_log(v->vl, 0, "Bad exit code: %04x sig %x exit %x core %x",
 	    status, WTERMSIG(status), WEXITSTATUS(status),
 	    WCOREDUMP(status));
+#else
+	vtc_log(v->vl, 0, "Bad exit code: %04x sig %x exit %x",
+	    status, WTERMSIG(status), WEXITSTATUS(status));
+#endif
 }
 
 /**********************************************************************



More information about the varnish-commit mailing list