]> granicus.if.org Git - vim/commitdiff
patch 8.2.3145: Vim9: profile test fails without profile feature v8.2.3145
authorBram Moolenaar <Bram@vim.org>
Sun, 11 Jul 2021 14:31:51 +0000 (16:31 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 11 Jul 2021 14:31:51 +0000 (16:31 +0200)
Problem:    Vim9: profile test fails without profile feature.
Solution:   Check the profile feature is present.

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

index eb4c5d120c649faabb6f7c9522353f4145a55228..ab0c031c544c0909d773f3e78bb3ff8d39a92dbb 100644 (file)
@@ -4175,6 +4175,8 @@ enddef
 " Execute this near the end, profiling doesn't stop until Vim exists.
 " This only tests that it works, not the profiling output.
 def Test_xx_profile_with_lambda()
+  CheckFeature profile
+
   profile start Xprofile.log
   profile func ProfiledFunc
   ProfiledFunc()
index 91a3677d56b4f537112b5b1ae0e4223f0e0a3afb..82d2d1fa0ff7bbf2c1b746e5fcf4691638435543 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3145,
 /**/
     3144,
 /**/