[master] 6676d90 Don't leave a varnish process running when listening to the bad_ip does succeed

Nils Goroll nils.goroll at uplex.de
Thu Mar 12 19:04:35 CET 2015


commit 6676d9036294f34148847b062451da624597e42e
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Thu Mar 12 19:02:44 2015 +0100

    Don't leave a varnish process running when listening to the bad_ip does succeed

diff --git a/bin/varnishtest/tests/c00003.vtc b/bin/varnishtest/tests/c00003.vtc
index 98573f3..12273f7 100644
--- a/bin/varnishtest/tests/c00003.vtc
+++ b/bin/varnishtest/tests/c00003.vtc
@@ -4,7 +4,7 @@ varnishtest "Check that we fail to start if any listen address does not work"
 # and are on Linux, ensure /proc/net/ipv4/ip_nonlocal_bind is set to 0.
 
 # All bad listen addresses
-err_shell "Failed to open (any) accept sockets" {${varnishd} -a "${bad_ip}:0" -n ${tmpdir} 2>&1}
+err_shell "Failed to open (any) accept sockets" {${varnishd} -F -a "${bad_ip}:0" -b 127.0.0.1:80 -n ${tmpdir} 2>&1 & pid=$! ; sleep 1 ; kill $pid ; wait }
 
 # Just one bad listen addresses
-# err_shell "Invalid listen address" {${varnishd} -a "127.0.0.1:0,${bad_ip}:0" -n ${tmpdir} 2>&1}
+# err_shell "Invalid listen address" {${varnishd} -F -a "127.0.0.1:0,${bad_ip}:0" -b 127.0.0.1:80 -n ${tmpdir} 2>&1 & pid=$! ; sleep 1 ; kill $pid ; wait }



More information about the varnish-commit mailing list