changeset 16867:0baa4c7e057f v8.1.1435

patch 8.1.1435: memory usage test is a bit too flaky commit https://github.com/vim/vim/commit/5d508dd39e810d446f29dfd4f4e745b802875001 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 31 20:23:25 2019 +0200 patch 8.1.1435: memory usage test is a bit too flaky Problem: Memory usage test is a bit too flaky. Solution: Adjust the tolerances a bit. (Christian Brabandt)
author Bram Moolenaar <Bram@vim.org>
date Fri, 31 May 2019 20:30:04 +0200
parents beb556717395
children 8c7ee13ffe4a
files src/testdir/test_memory_usage.vim src/version.c
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_memory_usage.vim
+++ b/src/testdir/test_memory_usage.vim
@@ -97,13 +97,14 @@ func Test_memory_func_capture_vargs()
   let after = s:monitor_memory_usage(vim.pid)
 
   " Estimate the limit of max usage as 2x initial usage.
-  " The lower limit can fluctuate a bit, use 98%.
-  call assert_inrange(before * 98 / 100, 2 * before, after.max)
+  " The lower limit can fluctuate a bit, use 97%.
+  call assert_inrange(before * 97 / 100, 2 * before, after.max)
 
   " In this case, garbage collecting is not needed.
-  " The value might fluctuate a bit, allow for 3% tolerance.
+  " The value might fluctuate a bit, allow for 3% tolerance below and 5% above.
+  " Based on various test runs.
   let lower = after.last * 97 / 100
-  let upper = after.last * 103 / 100
+  let upper = after.last * 105 / 100
   call assert_inrange(lower, upper, after.max)
 
   call vim.stop()
--- a/src/version.c
+++ b/src/version.c
@@ -768,6 +768,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1435,
+/**/
     1434,
 /**/
     1433,