diff --git a/src/cmd/ksh93/tests/leaks.sh b/src/cmd/ksh93/tests/leaks.sh index 256cb4644..51aef3da0 100755 --- a/src/cmd/ksh93/tests/leaks.sh +++ b/src/cmd/ksh93/tests/leaks.sh @@ -39,7 +39,7 @@ then N=512 # number of iterations for each test elif [[ -f /proc/$$/stat && $(uname) == Linux ]] then N=4096 # number of iterations for each test unit=bytes - tolerance=$((9*N)) # tolerate 9 bytes per iteration to account for malloc artefacts + tolerance=$((16*N)) # tolerate 16 bytes per iteration to account for malloc artefacts function getmem { cut -f 23 -d ' ' /dev/null) && let "($n) == ($n) && n > 0" then N=16384 unit=KiB - tolerance=$((8*N/1024)) # tolerate 8 bytes per iteration to account for malloc/ps artefacts + tolerance=$((12*N/1024))# tolerate 12 bytes per iteration to account for malloc/ps artefacts function getmem { ps -o rss= -p "$$"