]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.5156: search timeout test often fails with FreeBSD v8.2.5156
authorBram Moolenaar <Bram@vim.org>
Fri, 24 Jun 2022 19:11:59 +0000 (20:11 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 24 Jun 2022 19:11:59 +0000 (20:11 +0100)
Problem:    Search timeout test often fails with FreeBSD.
Solution:   Double the maximum time.

src/testdir/test_search.vim
src/version.c

index 5422b33f6a704740ac57a9e095729c0b186e60aa..c12c07b33f1fecbe7a66946ccb600910ada5d0c7 100644 (file)
@@ -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)
index 4f9d8913a98fe3a950d19b8434ac199de63f0619..b13e4ce3f86fc03e2615db0d764ceedf6bce9e85 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5156,
 /**/
     5155,
 /**/