0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

patch 8.2.5156: search timeout test often fails with FreeBSD

Problem:    Search timeout test often fails with FreeBSD.
Solution:   Double the maximum time.
This commit is contained in:
Bram Moolenaar
2022-06-24 20:11:59 +01:00
parent a315ce1f32
commit e9b74c0361
2 changed files with 6 additions and 0 deletions

View 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)

View File

@@ -735,6 +735,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
5156,
/**/
5155,
/**/