From: Bram Moolenaar Date: Mon, 30 Dec 2019 18:59:24 +0000 (+0100) Subject: patch 8.2.0062: memory test is flaky on FreeBSD X-Git-Tag: v8.2.0062 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7538ae997b3983d0c91a886a74ebacedd752164;p=vim 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. --- diff --git a/src/testdir/test_memory_usage.vim b/src/testdir/test_memory_usage.vim index d7c7036ff..1e0dd6d03 100644 --- a/src/testdir/test_memory_usage.vim +++ b/src/testdir/test_memory_usage.vim @@ -133,6 +133,8 @@ func Test_memory_func_capture_lvars() let vim = s:vim_new() call vim.start('--clean', '-c', 'set noswapfile', testfile) + " Wait a bit until the process has started and sourced the script. + sleep 200m let before = s:monitor_memory_usage(vim.pid).last call term_sendkeys(vim.buf, ":so %\") diff --git a/src/version.c b/src/version.c index f68e29fe4..d40cb3b4d 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 62, /**/ 61, /**/