From 6bfc90019f070832cce9f11bdecf707ffeead759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?=
Date: Mon, 21 Sep 2026 13:50:40 +0100 Subject: [PATCH] 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. --- tests/od/big-w.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/od/big-w.sh b/tests/od/big-w.sh index 7f76bdd05..726089ab2 100755 --- a/tests/od/big-w.sh +++ b/tests/od/big-w.sh @@ -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<