mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.1.1033: memory usage test may still fail on some systems
Problem: Memory usage test may still fail on some systems. (Elimar Riesebieter) Solution: Increase tolerance from 1% to 3%.
This commit is contained in:
@@ -138,9 +138,9 @@ func Test_memory_func_capture_lvars()
|
|||||||
endfor
|
endfor
|
||||||
|
|
||||||
" The usage may be a bit less than the last value, use 80%.
|
" The usage may be a bit less than the last value, use 80%.
|
||||||
" Allow for 1% tolerance at the upper limit.
|
" Allow for 3% tolerance at the upper limit.
|
||||||
let lower = before * 8 / 10
|
let lower = before * 8 / 10
|
||||||
let upper = (after.max + (after.last - before)) * 101 / 100
|
let upper = (after.max + (after.last - before)) * 103 / 100
|
||||||
call assert_inrange(lower, upper, last)
|
call assert_inrange(lower, upper, last)
|
||||||
|
|
||||||
call vim.stop()
|
call vim.stop()
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
1033,
|
||||||
/**/
|
/**/
|
||||||
1032,
|
1032,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user