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