about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2024-07-17 18:09:15 +0800
committerH.J. Lu <hjl.tools@gmail.com>2024-07-19 01:15:53 -0700
commitd905183f0bb10c66487a1dbc15fc52107cb164fc (patch)
treef94cd9bcd6291450fd388bac3e9aad4e3adb9460 /elf
parent910aae6e5a2196938fc30fa54dd1e96f16774ce7 (diff)
downloadglibc-d905183f0bb10c66487a1dbc15fc52107cb164fc.tar.gz
glibc-d905183f0bb10c66487a1dbc15fc52107cb164fc.tar.xz
glibc-d905183f0bb10c66487a1dbc15fc52107cb164fc.zip
elf/tst-rtld-does-not-exist: Pass --inhibit-cache to rtld
This avoids a test failure when the system has no /etc/ld.so.cache.

Tested on x86_64-linux-gnu.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf')
-rw-r--r--elf/tst-rtld-does-not-exist.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/elf/tst-rtld-does-not-exist.sh b/elf/tst-rtld-does-not-exist.sh
index a4a781ccfd..f4a9e38e5d 100644
--- a/elf/tst-rtld-does-not-exist.sh
+++ b/elf/tst-rtld-does-not-exist.sh
@@ -19,7 +19,9 @@
 
 export LC_ALL=C
 
-rtld="$1"
+# --inhibit-cache to suppress "No such file or directory" message when
+# /etc/ld.so.cache does not exist.
+rtld="$1 --inhibit-cache"
 tmp_out="$(mktemp)"
 
 $rtld program-does-not-exist 2>"$tmp_out"