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: quadruple maximum number of test iterations

There were still intermittent leak test failures on Debian.
They're clearly spurious as a different test fails each time.

My testing on a Debian 11.4.0 VM showed that it takes not a
doubling, but a quadrupling of the maximum number of test
iterations (from 16384==2**14 to 65536==2**16) for that system's
memory state to stabilise enough to avoid spurious test failurese.

Resolves: https://github.com/ksh93/ksh/issues/501
This commit is contained in:
Martijn Dekker 2022-07-31 17:01:12 +02:00
parent 38acc02e78
commit b07d7b2097

View file

@ -66,7 +66,7 @@ fi
# lucky. If the OS decides to randomly grow the memory heap, it may take more tries, but hopefully not more than
# $max_iter iterations. If the loop counter reaches $max_iter, then we assume a memory leak and throw a test failure.
typeset -ir max_iter=16384 block_iter=128 min_good_blocks=16
typeset -ir max_iter=65536 block_iter=128 min_good_blocks=16
# Set up test block construct.
# Known leaks can be marked known=y to turn them into non-fail warnings.