Skip to content

Commit e7538ae

Browse files
committed
patch 8.2.0062: memory test is flaky on FreeBSD
Problem: Memory test is flaky on FreeBSD. Solution: Add a short sleep before getting the first size.
1 parent 3fbcc12 commit e7538ae

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/testdir/test_memory_usage.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ func Test_memory_func_capture_lvars()
133133

134134
let vim = s:vim_new()
135135
call vim.start('--clean', '-c', 'set noswapfile', testfile)
136+
" Wait a bit until the process has started and sourced the script.
137+
sleep 200m
136138
let before = s:monitor_memory_usage(vim.pid).last
137139

138140
call term_sendkeys(vim.buf, ":so %\<CR>")

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,8 @@ static char *(features[]) =
742742

743743
static int included_patches[] =
744744
{ /* Add new patch number below this line */
745+
/**/
746+
62,
745747
/**/
746748
61,
747749
/**/

0 commit comments

Comments
 (0)