6c0556
commit d2d12c7a988a9a04aec23b5e4af549db61b0a005
6c0556
Author: H.J. Lu <hjl.tools@gmail.com>
6c0556
Date:   Tue Feb 2 09:31:56 2021 -0800
6c0556
6c0556
    tst-rtld-list-tunables.sh: Unset glibc tunables
6c0556
    
6c0556
    Unset glibc tunables and their aliases for --list-tunables test.
6c0556
6c0556
diff --git a/elf/tst-rtld-list-tunables.sh b/elf/tst-rtld-list-tunables.sh
6c0556
index e7bbdde94952b872..78f4ed2ebbd3db2c 100755
6c0556
--- a/elf/tst-rtld-list-tunables.sh
6c0556
+++ b/elf/tst-rtld-list-tunables.sh
6c0556
@@ -26,6 +26,17 @@ run_program_env=$3
6c0556
 LC_ALL=C
6c0556
 export LC_ALL
6c0556
 
6c0556
+# Unset tunables and their aliases.
6c0556
+GLIBC_TUNABLES=
6c0556
+MALLOC_ARENA_MAX=
6c0556
+MALLOC_ARENA_TEST=
6c0556
+MALLOC_CHECK_=
6c0556
+MALLOC_MMAP_MAX_=
6c0556
+MALLOC_MMAP_THRESHOLD_=
6c0556
+MALLOC_PERTURB_=
6c0556
+MALLOC_TOP_PAD_=
6c0556
+MALLOC_TRIM_THRESHOLD_=
6c0556
+
6c0556
 ${test_wrapper_env} \
6c0556
 ${run_program_env} \
6c0556
 $rtld --list-tunables \