From a50a080f6b0f958eb30d7520212f25f946ed7f8f Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 29 Jan 2021 10:30:19 -0300 Subject: 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. --- elf/tst-glibc-hwcaps-prepend-cache.root/ldconfig.run | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 elf/tst-glibc-hwcaps-prepend-cache.root/ldconfig.run (limited to 'elf/tst-glibc-hwcaps-prepend-cache.root') diff --git a/elf/tst-glibc-hwcaps-prepend-cache.root/ldconfig.run b/elf/tst-glibc-hwcaps-prepend-cache.root/ldconfig.run new file mode 100644 index 0000000..e69de29 -- cgit v1.1