From d905183f0bb10c66487a1dbc15fc52107cb164fc Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 17 Jul 2024 18:09:15 +0800 Subject: [PATCH] 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 --- elf/tst-rtld-does-not-exist.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"