$ export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
$ 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<
--
2.55.0