Commit fbb7c198 authored by Nils Goroll's avatar Nils Goroll

add a test for task_priv allocation in the function prologue

parent f03948f4
......@@ -20,7 +20,17 @@ varnish v1 -vcl+backend {
set req.http.overwrite = "the workspace " +
"to ensure we notice any unfinished privs";
}
sub priv_task {
debug.test_priv_task("foo");
}
sub vcl_recv {
if (req.url == "/priv-task-no-mem") {
vtc.workspace_alloc(client, -4);
call priv_task;
return (fail);
}
if (req.url == "/fail") {
debug.test_priv_task("foo");
return (fail);
......@@ -65,6 +75,12 @@ client c1 {
expect resp.status == 503
} -run
client c1 {
txreq -url "/priv-task-no-mem"
rxresp
expect resp.status == 503
} -run
varnish v1 -expect DEBUG.count == 1
logexpect l1 -v v1 -g raw -d 1 {
......
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