]> granicus.if.org Git - vim/commitdiff
patch 8.2.0062: memory test is flaky on FreeBSD v8.2.0062
authorBram Moolenaar <Bram@vim.org>
Mon, 30 Dec 2019 18:59:24 +0000 (19:59 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 30 Dec 2019 18:59:24 +0000 (19:59 +0100)
Problem:    Memory test is flaky on FreeBSD.
Solution:   Add a short sleep before getting the first size.

src/testdir/test_memory_usage.vim
src/version.c

index d7c7036ffa260acee2e661c7daff82a4d81aa027..1e0dd6d03706d1510c996ca310539a5bafd5b8f5 100644 (file)
@@ -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 %\<CR>")
index f68e29fe4f73c2e1b05271b9687412a065e06522..d40cb3b4d1433df75b17fc19fb17ccc61c673729 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    62,
 /**/
     61,
 /**/