[master] c8585914a guard against accidental regressions regarding obj
Nils Goroll
nils.goroll at uplex.de
Fri Nov 29 16:34:05 UTC 2019
commit c8585914a9abab4d8bad4548821d4e8abce81640
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Fri Nov 29 17:27:52 2019 +0100
guard against accidental regressions regarding obj
enum gethdr_e and VCL_HTTP have a 1:1 relation except for HDR_OBJ which
does not have a corresponding VCL_HTTP pointer.
As I am about to use a "reverse VRT_selecthttp()" to get from VCL_HTTP
to enum gethdr_e, I would want to guard against accidental introduction
of a regression.
diff --git a/bin/varnishtest/tests/m00000.vtc b/bin/varnishtest/tests/m00000.vtc
index e75bcd6de..342a861e3 100644
--- a/bin/varnishtest/tests/m00000.vtc
+++ b/bin/varnishtest/tests/m00000.vtc
@@ -127,6 +127,20 @@ varnish v1 -errvcl {Expression has type STRING, expected REAL} {
}
}
+varnish v1 -errvcl {Symbol not found: 'obj'} {
+ import debug;
+ sub vcl_hit {
+ debug.rot52(obj);
+ }
+}
+
+varnish v1 -errvcl {Symbol not found: 'obj'} {
+ import debug;
+ sub vcl_deliver {
+ debug.rot52(obj);
+ }
+}
+
varnish v1 -errvcl {Failed initialization} {
import debug;
import directors;
More information about the varnish-commit
mailing list