]> granicus.if.org Git - vim/commitdiff
patch 8.2.3778: lambda debug test fails in some configurations v8.2.3778
authorBram Moolenaar <Bram@vim.org>
Fri, 10 Dec 2021 21:05:53 +0000 (21:05 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 10 Dec 2021 21:05:53 +0000 (21:05 +0000)
Problem:    Lambda debug test fails in some configurations.
Solution:   Check feature in a legacy function.

src/testdir/test_vim9_script.vim
src/version.c

index ccbdc70bc6d6a111d62f2d3ccd79e2795d211bd4..58cf0202224bd26d52b5e0b7b6276eb0c27a6908 100644 (file)
@@ -4634,9 +4634,14 @@ def Test_xxx_echoerr_line_number()
   CheckDefExecAndScriptFailure(lines, 'some error continued', 1)
 enddef
 
-def Test_debug_with_lambda()
+func Test_debug_with_lambda()
   CheckRunVimInTerminal
 
+  " call indirectly to avoid compilation error for missing functions
+  call Run_Test_debug_with_lambda()
+endfunc
+
+def Run_Test_debug_with_lambda()
   var lines =<< trim END
       vim9script
       def Func()
index 1688db9c1fe51fe5515e7c7bc4bd5a9bbfd19e7f..265229f12c2533a7eb9f6f7359ab07f61190d496 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3778,
 /**/
     3777,
 /**/