[master] a5a3aff Revert "Correct this test for good"

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Sat Jan 28 20:27:04 CET 2017


commit a5a3affe70639273f4ec4e85aaaef3c510d4a557
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Sat Jan 28 20:25:28 2017 +0100

    Revert "Correct this test for good"
    
    This reverts commit a4e07fc5a611062afddd2fb114d43d793054c15f.
    
    It still fails on FreeBSD and SunOS.

diff --git a/bin/varnishtest/tests/c00003.vtc b/bin/varnishtest/tests/c00003.vtc
index 7f271cd..01adffd 100644
--- a/bin/varnishtest/tests/c00003.vtc
+++ b/bin/varnishtest/tests/c00003.vtc
@@ -1,9 +1,9 @@
 varnishtest "Check that we fail to start with erroneous -a/-b arguments"
 
 # Duplicate -a arguments
-shell -err -expect "have same address" {
-	varnishd -d -a 127.0.0.1:${random_port} \
-		-a 127.0.0.1:${random_port} -b localhost:80
+# XXX: this cannot be tested reliably, we tolerate port collision
+shell -err -match "have same address|already in use" {
+	varnishd -d -a 127.0.0.1:38484 -a 127.0.0.1:38484 -b localhost:80
 }
 
 # -a bad protocol specs
diff --git a/bin/varnishtest/vtc_main.c b/bin/varnishtest/vtc_main.c
index 29eec9c..c18f355 100644
--- a/bin/varnishtest/vtc_main.c
+++ b/bin/varnishtest/vtc_main.c
@@ -499,9 +499,6 @@ ip_magic(void)
 	/* Expose a backend that is forever down. */
 	extmacro_def("bad_backend", "%s %s", abuf, pbuf);
 
-	/* Expose a port that ought to be free */
-	extmacro_def("random_port", "%s", pbuf);
-
 	/*
 	 * We need an IP number which will not repond, ever, and that is a
 	 * lot harder than it sounds.  This IP# is from RFC5737 and a



More information about the varnish-commit mailing list