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 iterations on Linux

There are one or two leaks that show up intermittently on the
Github runners for the 1.0 branch (which is compiled as a release,
i.e. no vmalloc). If they're intermittent, they must be false
positives due to malloc artefacts. Let's double the number of
iterations for the /proc/$$/stat method and see what happens.
This commit is contained in:
Martijn Dekker 2021-11-15 03:00:40 +01:00
parent d9f1fdaa41
commit 31fe1c2890

View file

@ -36,7 +36,7 @@ then N=512 # number of iterations for each test
}
# On Linux, we can use /proc to get byte granularity for vsize (field 23).
elif [[ -f /proc/$$/stat && $(uname) == Linux ]]
then N=2048 # number of iterations for each test
then N=4096 # number of iterations for each test
unit=bytes
tolerance=$((8*N)) # tolerate 8 bytes per iteration to account for malloc artefacts
function getmem