Commit 8817f3f9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

More coverage testing for vcc_parse.c



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3250 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 5a630f10
......@@ -37,3 +37,27 @@ varnish v1 -vcl {
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_fetch { set obj.ttl = 1. k; }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_fetch { if (obj.ttl *= 2) { } }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv { if (req.backend > b) { } }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_hash { if (req.hash != "foo") { } }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_hash { if (2 == 3) { } }
}
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