Mercurial > vim
comparison src/testdir/test_memory_usage.vim @ 19023:9afeb0d2c4ab v8.2.0072
patch 8.2.0072: memory test still fails on Cirrus CI
Commit: https://github.com/vim/vim/commit/bb062c1588c324a1ce4cf01fd5e0780e83aaabe4
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 1 15:26:32 2020 +0100
patch 8.2.0072: memory test still fails on Cirrus CI
Problem: Memory test still fails on Cirrus CI.
Solution: Allow for a tiny bit more tolerance in the upper limit.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 01 Jan 2020 15:30:04 +0100 |
parents | fa3e63666acb |
children | 08940efa6b4e |
comparison
equal
deleted
inserted
replaced
19022:ab4224193d29 | 19023:9afeb0d2c4ab |
---|---|
149 " The usage may be a bit less than the last value, use 80%. | 149 " The usage may be a bit less than the last value, use 80%. |
150 " Allow for 20% tolerance at the upper limit. That's very permissive, but | 150 " Allow for 20% tolerance at the upper limit. That's very permissive, but |
151 " otherwise the test fails sometimes. On Cirrus CI with FreeBSD we need to | 151 " otherwise the test fails sometimes. On Cirrus CI with FreeBSD we need to |
152 " be even more permissive. | 152 " be even more permissive. |
153 if has('bsd') | 153 if has('bsd') |
154 let multiplier = 14 | 154 let multiplier = 15 |
155 else | 155 else |
156 let multiplier = 12 | 156 let multiplier = 12 |
157 endif | 157 endif |
158 let lower = before * 8 / 10 | 158 let lower = before * 8 / 10 |
159 let upper = (after.max + (after.last - before)) * multiplier / 10 | 159 let upper = (after.max + (after.last - before)) * multiplier / 10 |