changeset 29277:6e7b9156b08f v8.2.5156

patch 8.2.5156: search timeout test often fails with FreeBSD Commit: https://github.com/vim/vim/commit/e9b74c03618e2dcd01cd71f8d62d620fbce884fa Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 24 20:11:59 2022 +0100 patch 8.2.5156: search timeout test often fails with FreeBSD Problem: Search timeout test often fails with FreeBSD. Solution: Double the maximum time.
author Bram Moolenaar <Bram@vim.org>
date Fri, 24 Jun 2022 21:15:03 +0200
parents 3dccbb97c76e
children 2784b86229f7
files src/testdir/test_search.vim src/version.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_search.vim
+++ b/src/testdir/test_search.vim
@@ -379,6 +379,10 @@ func Test_searchpair_timeout_with_skip()
     if RunningWithValgrind()
       let max_time += 0.04  " this can be slow with valgrind
     endif
+    if has('bsd')
+      " test often fails with FreeBSD
+      let max_time = max_time * 2.0
+    endif
   endif
   let start = reltime()
   let found = searchpair('(', '', ')', 'crnm', 'SearchpairSkip()', 0, ms)
--- a/src/version.c
+++ b/src/version.c
@@ -736,6 +736,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    5156,
+/**/
     5155,
 /**/
     5154,