about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-02-02 09:31:56 -0800
committerH.J. Lu <hjl.tools@gmail.com>2021-02-02 10:12:47 -0800
commitd2d12c7a988a9a04aec23b5e4af549db61b0a005 (patch)
tree4c12bb266d1e2ead669175320a21f8521eb3e669
parent913201078502ad3f10043db02a8efce5d75387c2 (diff)
downloadglibc-d2d12c7a988a9a04aec23b5e4af549db61b0a005.tar.gz
glibc-d2d12c7a988a9a04aec23b5e4af549db61b0a005.tar.xz
glibc-d2d12c7a988a9a04aec23b5e4af549db61b0a005.zip
tst-rtld-list-tunables.sh: Unset glibc tunables
Unset glibc tunables and their aliases for --list-tunables test.
-rwxr-xr-xelf/tst-rtld-list-tunables.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/elf/tst-rtld-list-tunables.sh b/elf/tst-rtld-list-tunables.sh
index e7bbdde949..78f4ed2ebb 100755
--- a/elf/tst-rtld-list-tunables.sh
+++ b/elf/tst-rtld-list-tunables.sh
@@ -26,6 +26,17 @@ run_program_env=$3
 LC_ALL=C
 export LC_ALL
 
+# Unset tunables and their aliases.
+GLIBC_TUNABLES=
+MALLOC_ARENA_MAX=
+MALLOC_ARENA_TEST=
+MALLOC_CHECK_=
+MALLOC_MMAP_MAX_=
+MALLOC_MMAP_THRESHOLD_=
+MALLOC_PERTURB_=
+MALLOC_TOP_PAD_=
+MALLOC_TRIM_THRESHOLD_=
+
 ${test_wrapper_env} \
 ${run_program_env} \
 $rtld --list-tunables \