about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
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"