[master] 6c29a9c Test case for vcl_init -> return(fail)
Poul-Henning Kamp
phk at FreeBSD.org
Thu Sep 25 09:43:01 CEST 2014
commit 6c29a9c8e13fe952f04fa51f95faa9cce9460c5c
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Sep 25 07:42:37 2014 +0000
Test case for vcl_init -> return(fail)
diff --git a/bin/varnishtest/tests/v00040.vtc b/bin/varnishtest/tests/v00040.vtc
new file mode 100644
index 0000000..a21ca4b
--- /dev/null
+++ b/bin/varnishtest/tests/v00040.vtc
@@ -0,0 +1,23 @@
+varnishtest "test failing in vcl_init{}"
+
+server s1 {
+ rxreq
+ txresp
+} -start
+
+varnish v1 -vcl+backend {} -start
+
+client c1 {
+ txreq
+ rxresp
+} -run
+
+varnish v1 -errvcl {VCL "vcl2" vcl_init{} failed} {
+ sub vcl_init {
+ return (fail);
+ }
+
+ backend b1 { .host = "${s1_addr}"; }
+}
+
+varnish v1 -cliok vcl.list
More information about the varnish-commit
mailing list