[master] 23c918ed8 Test that NULL-object handling also copes with 2297

Poul-Henning Kamp phk at FreeBSD.org
Wed Feb 6 13:48:08 UTC 2019


commit 23c918ed85a621aad78513d0c6923ed54649bbab
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Feb 6 13:46:22 2019 +0000

    Test that NULL-object handling also copes with 2297
    
    Fixes: #2297

diff --git a/bin/varnishtest/tests/m00000.vtc b/bin/varnishtest/tests/m00000.vtc
index 355bb3c56..45262850b 100644
--- a/bin/varnishtest/tests/m00000.vtc
+++ b/bin/varnishtest/tests/m00000.vtc
@@ -120,3 +120,12 @@ varnish v1 -errvcl {Expression has type STRING, expected REAL} {
 		set resp.http.who = std.random("foo", "bar");
 	}
 }
+
+varnish v1 -errvcl {Failed initialization} {
+	import debug;
+	backend default { .host = "127.0.0.1"; }
+	sub vcl_init {
+		return (fail);
+		new xyz = debug.obj();
+	}
+}


More information about the varnish-commit mailing list