[3.0] 1a21466 More details about failing test subprocesses.

Tollef Fog Heen tfheen at varnish-cache.org
Thu Sep 22 14:03:21 CEST 2011


commit 1a2146647ca4e98ddfd2057958651c4c2678cab0
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Sep 20 09:40:44 2011 +0000

    More details about failing test subprocesses.

diff --git a/bin/varnishtest/vtc_main.c b/bin/varnishtest/vtc_main.c
index b280022..b189d1e 100644
--- a/bin/varnishtest/vtc_main.c
+++ b/bin/varnishtest/vtc_main.c
@@ -224,8 +224,11 @@ tst_cb(const struct vev *ve, int what)
 		free(jp->tmpdir);
 
 		if (stx) {
-			printf("#     top  TEST %s FAILED (%.3f)\n",
+			printf("#     top  TEST %s FAILED (%.3f)",
 			    jp->tst->filename, t);
+			if (WIFSIGNALED(stx))
+				printf(" signal=%d", WTERMSIG(stx));
+			printf(" exit=%d", WEXITSTATUS(stx));
 			if (!vtc_continue) {
 				/* XXX kill -9 other jobs ? */
 				exit(2);



More information about the varnish-commit mailing list