summaryrefslogtreecommitdiff
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
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%.
-rw-r--r--src/testdir/test_memory_usage.vim4
-rw-r--r--src/version.c2
2 files changed, 4 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()
diff --git a/src/version.c b/src/version.c
index 0ccf490fb..277c84260 100644
--- a/src/version.c
+++ b/src/version.c
@@ -780,6 +780,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1033,
+/**/
1032,
/**/
1031,