mirror of
https://github.com/vim/vim.git
synced 2025-10-07 05:54:16 -04:00
patch 8.1.1058: memory usage test may still fail on some systems
Problem: Memory usage test may still fail on some systems. Solution: Use 98% of the lower limit. (Christian Brabandt)
This commit is contained in:
@@ -97,9 +97,11 @@ func Test_memory_func_capture_vargs()
|
|||||||
let after = s:monitor_memory_usage(vim.pid)
|
let after = s:monitor_memory_usage(vim.pid)
|
||||||
|
|
||||||
" Estimate the limit of max usage as 2x initial usage.
|
" Estimate the limit of max usage as 2x initial usage.
|
||||||
call assert_inrange(before, 2 * before, after.max)
|
" The lower limit can fluctuate a bit, use 98%.
|
||||||
" In this case, garbage collecting is not needed. The value might fluctuate
|
call assert_inrange(before * 98 / 100, 2 * before, after.max)
|
||||||
" a bit, allow for 3% tolerance.
|
|
||||||
|
" In this case, garbage collecting is not needed.
|
||||||
|
" The value might fluctuate a bit, allow for 3% tolerance.
|
||||||
let lower = after.last * 97 / 100
|
let lower = after.last * 97 / 100
|
||||||
let upper = after.last * 103 / 100
|
let upper = after.last * 103 / 100
|
||||||
call assert_inrange(lower, upper, after.max)
|
call assert_inrange(lower, upper, after.max)
|
||||||
|
@@ -775,6 +775,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 */
|
||||||
|
/**/
|
||||||
|
1058,
|
||||||
/**/
|
/**/
|
||||||
1057,
|
1057,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user