Commit 75802e27 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a debug.no_backend() function to simulate a director failing to

pick a backend.
parent a1b74f7b
......@@ -59,6 +59,10 @@ $Function STRING blob2hex(BLOB)
Hexdump a blob
$Function BACKEND no_backend()
Fails at backend selection
$Object obj(STRING)
Test object
......
......@@ -129,3 +129,12 @@ vmod_blob2hex(const struct vrt_ctx *ctx, VCL_BLOB b)
VRT_priv_fini(b);
return (s);
}
VCL_BACKEND
vmod_no_backend(const struct vrt_ctx *ctx)
{
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
return (NULL);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment