Commit e0e38a4a authored by Geoff Simmons's avatar Geoff Simmons

Test access failure error handling in the VDP constructor.

parent 31562dfe
...@@ -147,6 +147,28 @@ varnish v1 -errvcl {vdp pipe failure: new emptypath: path is empty} { ...@@ -147,6 +147,28 @@ varnish v1 -errvcl {vdp pipe failure: new emptypath: path is empty} {
} }
} }
shell "touch ${tmpdir}/foo"
varnish v1 -errvcl {vdp pipe failure: new noexec: cannot execute ${tmpdir}/foo: } {
import ${vmod_pipe};
backend b None;
sub vcl_init {
new noexec = pipe.vdp(path="${tmpdir}/foo");
}
}
shell "rm ${tmpdir}/foo"
varnish v1 -errvcl {vdp pipe failure: new enoent: cannot execute ${tmpdir}/foo: } {
import ${vmod_pipe};
backend b None;
sub vcl_init {
new enoent = pipe.vdp(path="${tmpdir}/foo");
}
}
varnish v1 -vcl { backend b None; } varnish v1 -vcl { backend b None; }
# Tests the discard event, with removal of VDPs. # Tests the discard event, with removal of VDPs.
......
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