From: Xi Ruoyao Date: Wed, 17 Jul 2024 10:09:15 +0000 (+0800) Subject: elf/tst-rtld-does-not-exist: Pass --inhibit-cache to rtld X-Git-Tag: glibc-2.40~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d905183f0bb10c66487a1dbc15fc52107cb164fc;p=thirdparty%2Fglibc.git 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 Reviewed-by: Adhemerval Zanella --- 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"