Mailing List Archive

[master] 8709deb83 Test coverage for VCL "weak" symbols
commit 8709deb830a99862e956817c750192f24f5bd313
Author: Dridi Boukelmoune <dridi.boukelmoune@gmail.com>
Date: Thu Jun 4 11:56:52 2020 +0200

Test coverage for VCL "weak" symbols

Simply make sure we don't allow symbols starting with an underscore
symbol.

diff --git a/bin/varnishtest/tests/v00019.vtc b/bin/varnishtest/tests/v00019.vtc
index e37751869..fc98616a6 100644
--- a/bin/varnishtest/tests/v00019.vtc
+++ b/bin/varnishtest/tests/v00019.vtc
@@ -77,3 +77,11 @@ varnish v1 -errvcl {Unknown token '--' when looking for INT} {
set resp.status = --200;
}
}
+
+varnish v1 -errvcl "Syntax error" {
+ import debug;
+ backend be none;
+ sub vcl_init {
+ new _invalid = debug.obj();
+ }
+}
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit