Commit fc83088a authored by Geoff Simmons's avatar Geoff Simmons

Verify VCL load failure when a regex cannot be compiled.

parent 423aee8a
......@@ -367,3 +367,13 @@ client c1 {
} -run
logexpect l1 -wait
varnish v1 -errvcl {vmod selector failure: s.add(): cannot compile regular expression '(':} {
import ${vmod_selector};
backend b { .host = "${bad_ip}"; }
sub vcl_init {
new s = selector.set();
s.add("foo", regex="(");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment