[master] 04bce23c5 vcc_CheckUseRecurse() coverage

Nils Goroll nils.goroll at uplex.de
Mon Dec 16 11:56:07 UTC 2019


commit 04bce23c529238a314db5be97290ea02db72e77f
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Dec 16 12:54:31 2019 +0100

    vcc_CheckUseRecurse() coverage

diff --git a/bin/varnishtest/tests/v00020.vtc b/bin/varnishtest/tests/v00020.vtc
index 238927c34..06efb9021 100644
--- a/bin/varnishtest/tests/v00020.vtc
+++ b/bin/varnishtest/tests/v00020.vtc
@@ -246,6 +246,16 @@ varnish v1 -errvcl {Not available in method 'vcl_recv'.} {
 	}
 }
 
+varnish v1 -errvcl {Not available from method 'vcl_recv'.} {
+	backend b { .host = "127.0.0.1"; }
+	sub foo {
+		set req.http.foo = 100 + beresp.status;
+	}
+	sub vcl_recv {
+		call foo;
+	}
+}
+
 varnish v1 -errvcl {Name of ACL, 'foo.bar', contains illegal character '.'} {
 	acl foo.bar {
 	}


More information about the varnish-commit mailing list