]> err.no Git - varnish/commitdiff
Test the "week" time unit.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 10 Oct 2008 20:57:51 +0000 (20:57 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 10 Oct 2008 20:57:51 +0000 (20:57 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3285 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/v00020.vtc

index b131699ae308c8a18a318ad3567134b332ee3406..ca3441d9f805207ef8730002353aa21453df8fd0 100644 (file)
@@ -3,12 +3,20 @@
 test "VCL compiler coverage test: vcc_parse.c"
 
 varnish v1 -vcl {
-backend b { .host = "127.0.0.1"; }
-C{
-#include <stdio.h>
-}C
+       backend b { .host = "127.0.0.1"; }
+       C{
+       #include <stdio.h>
+       }C
 }
 
 varnish v1 -badvcl { 0; }
 
 varnish v1 -badvcl " sub vcl_recv { { } { "
+
+varnish v1 -vcl {
+       backend b { .host = "127.0.0.1"; }
+       sub vcl_fetch {
+               set obj.ttl = 1w;
+       }
+}
+