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

patch 8.1.1027: memory usage test sometimes fails

Problem:    Memory usage test sometimes fails.
Solution:   Use 80% of before.last as the lower limit. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2019-03-20 22:45:01 +01:00
parent d00e024d9f
commit 08cda65ddf
2 changed files with 5 additions and 1 deletions

View File

@@ -137,7 +137,9 @@ func Test_memory_func_capture_lvars()
let last = s:monitor_memory_usage(vim.pid).last let last = s:monitor_memory_usage(vim.pid).last
endfor endfor
call assert_inrange(before, after.max + (after.last - before), last) " The usage may be a bit less than the last value
let lower = before * 8 / 10
call assert_inrange(lower, after.max + (after.last - before), last)
call vim.stop() call vim.stop()
call delete(testfile) call delete(testfile)

View File

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