about summary refs log tree commit diff
path: root/elf/tst-ldconfig-ld_so_conf-update.root
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-01-29 10:30:19 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-01-29 14:08:18 -0300
commita50a080f6b0f958eb30d7520212f25f946ed7f8f (patch)
tree592dba7d2db9da3bef5ae7a3f229bc77876151c4 /elf/tst-ldconfig-ld_so_conf-update.root
parentd7f4f3f5fb1275f0b3d9f4e1b3d9d7b75a5a9e26 (diff)
downloadglibc-a50a080f6b0f958eb30d7520212f25f946ed7f8f.tar.gz
glibc-a50a080f6b0f958eb30d7520212f25f946ed7f8f.tar.xz
glibc-a50a080f6b0f958eb30d7520212f25f946ed7f8f.zip
elf: Fix tests that rely on ld.so.cache for cross-compiling
For configurations with cross-compiling equal to 'maybe' or 'no',
ldconfig will not run and thus the ld.so.cache will not be created
on the container testroot.pristine.

This lead to failures on both tst-glibc-hwcaps-prepend-cache and
tst-ldconfig-ld_so_conf-update on environments where the same
compiler can be used to build different ABIs (powerpc and x86 for
instance).

This patch addas a new test-container hook, ldconfig.run, that
triggers a ldconfig execution prior the test execution.

Checked on x86_64-linux-gnu and i686-linux-gnu.
Diffstat (limited to 'elf/tst-ldconfig-ld_so_conf-update.root')
-rw-r--r--elf/tst-ldconfig-ld_so_conf-update.root/ldconfig.run0
1 files changed, 0 insertions, 0 deletions
diff --git a/elf/tst-ldconfig-ld_so_conf-update.root/ldconfig.run b/elf/tst-ldconfig-ld_so_conf-update.root/ldconfig.run
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/elf/tst-ldconfig-ld_so_conf-update.root/ldconfig.run