summaryrefslogtreecommitdiff
path: root/src/testdir/test_memory_usage.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-03-22 11:33:09 +0100
committerBram Moolenaar <Bram@vim.org>2019-03-22 11:33:09 +0100
commitba64ba093520e85d6bed2595960edb693bdb4c51 (patch)
treee49004ec2379d2d648826e5b5b01325aa15bac97 /src/testdir/test_memory_usage.vim
parent2c519cf3bfe76083767ac94c674d2e161ed36587 (diff)
downloadvim-git-ba64ba093520e85d6bed2595960edb693bdb4c51.tar.gz
patch 8.1.1033: memory usage test may still fail on some systemsv8.1.1033
Problem: Memory usage test may still fail on some systems. (Elimar Riesebieter) Solution: Increase tolerance from 1% to 3%.
Diffstat (limited to 'src/testdir/test_memory_usage.vim')
-rw-r--r--src/testdir/test_memory_usage.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_memory_usage.vim b/src/testdir/test_memory_usage.vim
index a3d1d65ef..e1c399e2d 100644
--- a/src/testdir/test_memory_usage.vim
+++ b/src/testdir/test_memory_usage.vim
@@ -138,9 +138,9 @@ func Test_memory_func_capture_lvars()
endfor
" 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 upper = (after.max + (after.last - before)) * 101 / 100
+ let upper = (after.max + (after.last - before)) * 103 / 100
call assert_inrange(lower, upper, last)
call vim.stop()