]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0350: tests: test_vim9_dissamble may fail v9.1.0350
authorJulio B <julio.bacel@gmail.com>
Thu, 18 Apr 2024 20:05:12 +0000 (22:05 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 18 Apr 2024 20:05:12 +0000 (22:05 +0200)
Problem:  tests: test_vim9_dissamble may fail
Solution: Instead of hard-coding the lambda number, accept
          just any number (Julio B)

closes: #14581

Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_vim9_disassemble.vim
src/version.c

index 1daef222dbb7b098a2ad520e8e302c9b74db26de..92a4ff2a6ebf07835afe01016d3de6117ac34ab5 100644 (file)
@@ -1030,7 +1030,7 @@ def Test_disassemble_closure_in_loop()
 
         'endif\_s*' ..
         'g:Ref = () => ii\_s*' ..
-        '\d\+ FUNCREF <lambda>4 vars  $3-$3\_s*' ..
+        '\d\+ FUNCREF <lambda>\d\+ vars  $3-$3\_s*' ..
         '\d\+ STOREG g:Ref\_s*' ..
 
         'continue\_s*' ..
index c32f51bfb3cc29dfdad19c293b70341026e123ac..3754073e7c15855ae6426603e771953785bb9ff3 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    350,
 /**/
     349,
 /**/