1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

tests/leaks.sh: increase Linux (standard malloc) tolerance

There are intermittent false failures on the GitHub CI runners on
the 1.0 branch, which is compiled with the OS's malloc (as opposed
to ast vmalloc). Increase the byte tolerance for the leaks test
from 4 to 6 bytes on Linux when compiling with standard malloc.
This commit is contained in:
Martijn Dekker 2021-05-14 16:45:26 +02:00
parent e521b81636
commit 16080141c5

View file

@ -37,7 +37,7 @@ then N=512 # number of iterations for each test
elif [[ -f /proc/$$/stat && $(uname) == Linux ]]
then N=2048 # number of iterations for each test
unit=bytes
tolerance=$((4*N)) # tolerate 4 bytes per iteration to account for malloc artefacts
tolerance=$((6*N)) # tolerate 6 bytes per iteration to account for malloc artefacts
function getmem
{
cut -f 23 -d ' ' </proc/$$/stat