mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 11:55:34 +00:00
vim-patch:8.2.2601: memory usage test often fails on FreeBSD
Problem: Memory usage test often fails on FreeBSD.
Solution: Increase multiplier for upper limit.
6bce5856b5
This commit is contained in:
@@ -157,8 +157,8 @@ describe('memory usage', function()
|
|||||||
-- 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 20% tolerance at the upper limit. That's very permissive, but
|
-- Allow for 20% tolerance at the upper limit. That's very permissive, but
|
||||||
-- otherwise the test fails sometimes. On Sourcehut CI with FreeBSD we need to
|
-- otherwise the test fails sometimes. On Sourcehut CI with FreeBSD we need to
|
||||||
-- be even more permissive.
|
-- be even much more permissive.
|
||||||
local upper_multiplier = uname() == 'freebsd' and 15 or 12
|
local upper_multiplier = uname() == 'freebsd' and 19 or 12
|
||||||
local lower = before.last * 8 / 10
|
local lower = before.last * 8 / 10
|
||||||
local upper = load_adjust((after.max + (after.last - before.last)) * upper_multiplier / 10)
|
local upper = load_adjust((after.max + (after.last - before.last)) * upper_multiplier / 10)
|
||||||
check_result({before=before, after=after, last=last},
|
check_result({before=before, after=after, last=last},
|
||||||
|
|||||||
Reference in New Issue
Block a user