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>
This commit is contained in:
Xi Ruoyao 2024-07-17 18:09:15 +08:00 committed by H.J. Lu
parent 910aae6e5a
commit d905183f0b

View File

@ -19,7 +19,9 @@
export LC_ALL=C 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)" tmp_out="$(mktemp)"
$rtld program-does-not-exist 2>"$tmp_out" $rtld program-does-not-exist 2>"$tmp_out"