[master] 6db04b7 Add a no_stevedore function for testing

Federico G. Schwindt fgsch at lodoss.net
Fri Oct 14 09:04:05 CEST 2016


commit 6db04b78bc38bc2f5c4a0f2750123341636b5bac
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Fri Oct 14 07:51:02 2016 +0100

    Add a no_stevedore function for testing

diff --git a/lib/libvmod_debug/vmod.vcc b/lib/libvmod_debug/vmod.vcc
index 82e264f..4cebb1f 100644
--- a/lib/libvmod_debug/vmod.vcc
+++ b/lib/libvmod_debug/vmod.vcc
@@ -71,6 +71,10 @@ $Function BACKEND no_backend()
 
 Fails at backend selection
 
+$Function STEVEDORE no_stevedore()
+
+Fails at storage selection.
+
 $Object obj(STRING string="default", ENUM { one, two, three } number="one")
 
 Test object
diff --git a/lib/libvmod_debug/vmod_debug.c b/lib/libvmod_debug/vmod_debug.c
index 3322da7..a0ab290 100644
--- a/lib/libvmod_debug/vmod_debug.c
+++ b/lib/libvmod_debug/vmod_debug.c
@@ -184,6 +184,14 @@ vmod_no_backend(VRT_CTX)
 	return (NULL);
 }
 
+VCL_STEVEDORE __match_proto__(td_debug_no_stevedore)
+vmod_no_stevedore(VRT_CTX)
+{
+
+	CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
+	return (NULL);
+}
+
 VCL_VOID __match_proto__(td_debug_rot52)
 vmod_rot52(VRT_CTX, VCL_HTTP hp)
 {



More information about the varnish-commit mailing list