r4151 - trunk/varnish-cache/bin/varnishtest
tfheen at projects.linpro.no
tfheen at projects.linpro.no
Tue Jul 28 15:54:37 CEST 2009
Author: tfheen
Date: 2009-07-28 15:54:36 +0200 (Tue, 28 Jul 2009)
New Revision: 4151
Modified:
trunk/varnish-cache/bin/varnishtest/vtc_varnish.c
Log:
Add #ifdef for WCOREDUMP
AIX doesn't have WCOREDUMP, so compilation failed there. Add #ifdef.
Partially addresses #531.
Modified: trunk/varnish-cache/bin/varnishtest/vtc_varnish.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc_varnish.c 2009-07-28 13:42:38 UTC (rev 4150)
+++ trunk/varnish-cache/bin/varnishtest/vtc_varnish.c 2009-07-28 13:54:36 UTC (rev 4151)
@@ -381,9 +381,14 @@
vtc_log(v->vl, 2, "R %d Status: %04x", r, status);
if (WIFEXITED(status) && WEXITSTATUS(status) == 0)
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