Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
fbb7c198
Commit
fbb7c198
authored
Aug 22, 2018
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a test for task_priv allocation in the function prologue
parent
f03948f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
m00000.vtc
bin/varnishtest/tests/m00000.vtc
+16
-0
No files found.
bin/varnishtest/tests/m00000.vtc
View file @
fbb7c198
...
...
@@ -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 {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment