[4.1] 91085b2 Silence dns test output when offline

Federico G. Schwindt fgsch at lodoss.net
Fri Sep 4 15:54:56 CEST 2015


commit 91085b2b00bc1d572ef3bba3511f2068d55ff645
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Wed Sep 2 15:51:17 2015 +0100

    Silence dns test output when offline

diff --git a/bin/varnishtest/vtc_main.c b/bin/varnishtest/vtc_main.c
index e1f15d1..cfdea02 100644
--- a/bin/varnishtest/vtc_main.c
+++ b/bin/varnishtest/vtc_main.c
@@ -416,10 +416,8 @@ dns_works(void)
 	const char *msg;
 
 	error = VSS_resolver("phk.freebsd.dk", NULL, dns_cb, &ret, &msg);
-	if (error || msg != NULL || ret != 1) {
-		fprintf(stderr, "DNS-test fails\n");
+	if (error || msg != NULL || ret != 1)
 		return (0);
-	}
 	return (1);
 }
 



More information about the varnish-commit mailing list