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:
parent
e521b81636
commit
16080141c5
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ then N=512 # number of iterations for each test
|
||||||
elif [[ -f /proc/$$/stat && $(uname) == Linux ]]
|
elif [[ -f /proc/$$/stat && $(uname) == Linux ]]
|
||||||
then N=2048 # number of iterations for each test
|
then N=2048 # number of iterations for each test
|
||||||
unit=bytes
|
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
|
function getmem
|
||||||
{
|
{
|
||||||
cut -f 23 -d ' ' </proc/$$/stat
|
cut -f 23 -d ' ' </proc/$$/stat
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue