[master] af8cc5b Add a testcase to see that PID file locking works

Poul-Henning Kamp phk at FreeBSD.org
Wed Mar 11 10:51:46 CET 2015


commit af8cc5b9a55aa934c9d7d5a5dae9a18876df65ad
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Mar 11 09:51:25 2015 +0000

    Add a testcase to see that PID file locking works

diff --git a/bin/varnishtest/tests/b00045.vtc b/bin/varnishtest/tests/b00045.vtc
new file mode 100644
index 0000000..a98abeb
--- /dev/null
+++ b/bin/varnishtest/tests/b00045.vtc
@@ -0,0 +1,18 @@
+varnishtest "Check Pid file locking"
+
+server s1 {
+	rxreq
+	send "HTTP/1.1 200 OK\nContent-Length: dupa"
+	send_n 15865 "\n"
+} -start
+
+varnish v1 -vcl+backend {} -start
+
+client c1 {
+	txreq
+	rxresp
+} -run
+
+delay .2
+
+shell_err 0x200 "${varnishd} -P ${tmpdir}/v1/varnishd.pid -b 127.0.0.1:80 -a :0 -n ${tmpdir} > /dev/null 2>&1"



More information about the varnish-commit mailing list