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:
parent
38acc02e78
commit
b07d7b2097
1 changed files with 1 additions and 1 deletions
|
@ -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
|
# 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.
|
# $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.
|
# Set up test block construct.
|
||||||
# Known leaks can be marked known=y to turn them into non-fail warnings.
|
# Known leaks can be marked known=y to turn them into non-fail warnings.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue