[master] 11bd2a9ee Add test case for #3159

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Mon Dec 16 11:46:06 UTC 2019


commit 11bd2a9ee6a5461d80f492b46b2a3e5637ed6041
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Mon Dec 16 12:44:51 2019 +0100

    Add test case for #3159

diff --git a/bin/varnishtest/tests/r03159.vtc b/bin/varnishtest/tests/r03159.vtc
new file mode 100644
index 000000000..e601e4a04
--- /dev/null
+++ b/bin/varnishtest/tests/r03159.vtc
@@ -0,0 +1,16 @@
+varnishtest "double sub unref warning"
+
+shell {
+	cat >unref.vcl <<-EOF
+	vcl 4.1;
+	backend be none;
+	sub foo { }
+	EOF
+}
+
+varnish v1 -cliok "param.set vcc_err_unref off"
+
+shell -match "^1$" {
+	varnishadm -n "${v1_name}" vcl.load unref "${tmpdir}/unref.vcl" 2>&1 |
+	grep -c "That was just a warning"
+}


More information about the varnish-commit mailing list