]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf/tst-rtld-does-not-exist: Pass --inhibit-cache to rtld
authorXi Ruoyao <xry111@xry111.site>
Wed, 17 Jul 2024 10:09:15 +0000 (18:09 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 19 Jul 2024 08:15:53 +0000 (01:15 -0700)
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>
elf/tst-rtld-does-not-exist.sh

index a4a781ccfd219bb959bcfe6c152c5b89df092165..f4a9e38e5d9deb9624787ce2763530ca6cf8546a 100644 (file)
@@ -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"