diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-01-29 10:30:19 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-01-29 14:08:18 -0300 |
commit | a50a080f6b0f958eb30d7520212f25f946ed7f8f (patch) | |
tree | 592dba7d2db9da3bef5ae7a3f229bc77876151c4 /elf | |
parent | d7f4f3f5fb1275f0b3d9f4e1b3d9d7b75a5a9e26 (diff) | |
download | glibc-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')
-rw-r--r-- | elf/tst-glibc-hwcaps-prepend-cache.root/ldconfig.run | 0 | ||||
-rw-r--r-- | elf/tst-ldconfig-ld_so_conf-update.root/ldconfig.run | 0 |
2 files changed, 0 insertions, 0 deletions
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 0000000000..e69de29bb2 --- /dev/null +++ b/elf/tst-glibc-hwcaps-prepend-cache.root/ldconfig.run 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 |