1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2026-10-24 02:08:57 +03:00

tests: od: avoid large mem allocation due to MALLOC_PERTURB_

$ testmem() {
    env time -f %M \
    make TESTS="$*"RUN_VERY_EXPENSIVE_TESTS=yes SUBDIRS=. check
   }

 # Before change
 $ testmem tests/od/big-w.sh
 2965404 # 3GB

 # After change
 $ testmem tests/od/big-w.sh
 14136

* tests/od/big-w.sh: Disable MALLOC_PERTURB_.
Also remove the redundant setting of LC_ALL.
This commit is contained in:
Pádraig Brady
2026-09-21 13:50:40 +01:00
parent c445c7580c
commit 6bfc90019f

View File

@@ -21,7 +21,8 @@ print_ver_ od
very_expensive_
require_bash_as_SHELL_ # for >()
export LC_ALL=C
# Minimize actual memory use
export MALLOC_PERTURB_=0
cat >exp <<'EOF' || framework_failure_
0000000 x >x<