[master] 43b8983 Don't print termsig as exitcode
    Poul-Henning Kamp 
    phk at FreeBSD.org
       
    Fri Jan 13 10:15:05 CET 2017
    
    
  
commit 43b898354dec4c76398f9a3b6466f68a4000af21
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Jan 13 09:10:29 2017 +0000
    Don't print termsig as exitcode
diff --git a/bin/varnishtest/vtc_main.c b/bin/varnishtest/vtc_main.c
index 0a2c9ae..b6175e8 100644
--- a/bin/varnishtest/vtc_main.c
+++ b/bin/varnishtest/vtc_main.c
@@ -216,7 +216,8 @@ tst_cb(const struct vev *ve, int what)
 			    jp->tst->filename, t);
 			if (WIFSIGNALED(stx))
 				printf(" signal=%d", WTERMSIG(stx));
-			printf(" exit=%d\n", ecode);
+			else if (WIFEXITED(stx))
+				printf(" exit=%d\n", WEXITSTATUS(stx));
 			if (!vtc_continue) {
 				/* XXX kill -9 other jobs ? */
 				exit(2);
    
    
More information about the varnish-commit
mailing list