Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-selector
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-selector
Commits
affcc1eb
Commit
affcc1eb
authored
Feb 22, 2021
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.check_call() emits the Notice message as documented for illegal calls.
parent
477d5567
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
associate.c
src/associate.c
+1
-1
subroutine.vtc
src/tests/subroutine.vtc
+2
-2
No files found.
src/associate.c
View file @
affcc1eb
...
...
@@ -313,7 +313,7 @@ vmod_set_check_call(VRT_CTX, struct VPFX(selector_set) *set, VCL_INT n,
if
(
!
check_added
(
ctx
,
set
,
idx
,
SUB
,
"check_call"
,
"subroutine"
,
0
))
return
(
0
);
if
((
err
=
VRT_check_call
(
ctx
,
set
->
table
[
idx
]
->
sub
))
!=
NULL
)
{
VNOTICE
(
ctx
,
"%s
"
,
err
);
VNOTICE
(
ctx
,
"%s
.check_call(): %s"
,
set
->
vcl_name
,
err
);
return
(
0
);
}
...
...
src/tests/subroutine.vtc
View file @
affcc1eb
...
...
@@ -802,7 +802,7 @@ logexpect l1 -v v1 -d 0 -g vxid -q "VCL_Error" {
logexpect l2 -v v1 -d 0 -g vxid -q "Notice" {
expect 0 * Begin req
expect * = Notice {^vmod_selector
: Dynamic call to "sub foo\{\}" not allowed from here$}
expect * = Notice {^vmod_selector: s\.check_call\(\)
: Dynamic call to "sub foo\{\}" not allowed from here$}
expect 0 = ReqHeader {^Check: false$}
expect * = End
} -start
...
...
@@ -851,7 +851,7 @@ logexpect l1 -v v1 -d 0 -g vxid -q "VCL_Error" {
logexpect l2 -v v1 -d 0 -g vxid -q "Notice" {
expect 0 * Begin req
expect * = Notice {^vmod_selector: Recursive dynamic call to "sub foo\{\}"$}
expect * = Notice {^vmod_selector:
s\.check_call\(\):
Recursive dynamic call to "sub foo\{\}"$}
expect 0 = ReqHeader {^Check: false$}
expect * = End
} -start
...
...
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