Commit 7f164a35 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a testcase for starting with some bad listen sockets.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2784 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7b70907f
# Test that we get anything through at all
#
# $Id$
test "Check that we start if one listen address works"
varnish v1 -accept ":9081 127.0.0.2:9082" -arg "-b 127.0.0.1:9080" -start
server s1 {
rxreq
txresp -hdr "Connection: close" -body "012345\n"
} -start
client c1 {
txreq -url "/"
rxresp
expect resp.status == 200
} -run
server s1 -wait
varnish v1 -stop
......@@ -190,7 +190,7 @@ varnish_launch(struct varnish *v)
AN(vsb);
vsb_printf(vsb, "cd ../varnishd &&");
vsb_printf(vsb, " ./varnishd -d -d -n %s", v->name);
vsb_printf(vsb, " -a %s -T %s", v->accept, v->telnet);
vsb_printf(vsb, " -a '%s' -T %s", v->accept, v->telnet);
vsb_printf(vsb, " %s", v->args);
vsb_finish(vsb);
AZ(vsb_overflowed(vsb));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment