summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-03-15 16:16:47 +0000
committerBram Moolenaar <Bram@vim.org>2022-03-15 16:16:47 +0000
commit48f69cdfa401999ac5ff8cef6d8dcabe3f93e284 (patch)
tree94e6ae0524afcb069f817e72534a27e7a1628561
parent96923b7a14839e7505b194ab76e1f15bb88fa7ed (diff)
patch 8.2.4574: Vim9: test for profiling failsv8.2.4574
Problem: Vim9: test for profiling fails. Solution: Mark function for profiling earlier to avoid E1271.
-rw-r--r--src/testdir/test_vim9_script.vim8
-rw-r--r--src/version.c2
2 files changed, 6 insertions, 4 deletions
diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim
index dfa2a2d288..ec0d54797f 100644
--- a/src/testdir/test_vim9_script.vim
+++ b/src/testdir/test_vim9_script.vim
@@ -3944,13 +3944,13 @@ def Test_profile_with_lambda()
def Profile()
profile start Xprofile.log
profile func ProfiledWithLambda
- ProfiledWithLambda()
-
+ # mark ProfiledNested for profiling to avoid E1271
profile func ProfiledNested
+ ProfiledWithLambda()
ProfiledNested()
- # Also profile the nested function. Use a different function, although the
- # contents is the same, to make sure it was not already compiled.
+ # Also profile the nested function. Use a different function, although
+ # the contents is the same, to make sure it was not already compiled.
profile func *
g:ProfiledNestedProfiled()
diff --git a/src/version.c b/src/version.c
index 9e5e142fd2..4dfbdd59d3 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4574,
+/**/
4573,
/**/
4572,