[master] 851be37 Add a canary in case of failure-failure.

Poul-Henning Kamp phk at FreeBSD.org
Mon Feb 6 12:56:04 CET 2017


commit 851be37d2a9e956efbb246af730b0b21f550a687
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Feb 6 11:25:20 2017 +0000

    Add a canary in case of failure-failure.

diff --git a/bin/varnishtest/tests/v00051.vtc b/bin/varnishtest/tests/v00051.vtc
index d9303c2..334d919 100644
--- a/bin/varnishtest/tests/v00051.vtc
+++ b/bin/varnishtest/tests/v00051.vtc
@@ -13,16 +13,19 @@ varnish v1 -vcl+backend {
 		}
 		if (req.restarts == 0) {
 			debug.fail();
+			set req.http.not = "Should not happen";
 		}
 	}
 	sub vcl_hash {
 		if (req.http.foo == "hash") {
 			debug.fail();
+			set req.http.not = "Should not happen";
 		}
 	}
 	sub vcl_synth {
 		if (resp.status == 748) {
 			debug.fail();
+			set req.http.not = "Should not happen";
 		}
 		if (req.restarts == 0 && req.http.foo == "foo") {
 			return (restart);



More information about the varnish-commit mailing list