[master] d6210a9 A little bit more coverage of vcc_expr.c

Poul-Henning Kamp phk at varnish-cache.org
Tue Feb 1 00:11:10 CET 2011


commit d6210a9f5b821a4cddbc7bb6434f697265c91aab
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Jan 31 23:10:55 2011 +0000

    A little bit more coverage of vcc_expr.c

diff --git a/bin/varnishtest/tests/v00020.vtc b/bin/varnishtest/tests/v00020.vtc
index e584150..abba9b7 100644
--- a/bin/varnishtest/tests/v00020.vtc
+++ b/bin/varnishtest/tests/v00020.vtc
@@ -42,7 +42,7 @@ varnish v1 -badvcl {
 
 varnish v1 -badvcl {
 	sub vcl_recv {
-		if (req.grace < 3s || req.grace) {
+		if (req.grace < -3s || req.grace) {
 			set req.http.foo = vcl_recv;
 		}
 	}
@@ -67,3 +67,17 @@ varnish v1 -badvcl {
 		set req.http.foo = req.grace + beresp.status;
 	}
 }
+
+varnish v1 -badvcl {
+	sub vcl_fetch {
+		if (! req.grace) {
+		}
+	}
+}
+
+varnish v1 -badvcl {
+	sub vcl_fetch {
+		if (beresp.do_gzip + beresp.do_gunzip) {
+		}
+	}
+}



More information about the varnish-commit mailing list