diff options
author | Florian Weimer <fweimer@redhat.com> | 2023-02-08 18:11:04 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2023-02-08 18:11:04 +0100 |
commit | 9fd63e35371b9939e9153907c6a753e6960b68ad (patch) | |
tree | d78f0c2ef1f2eb32ac3f23083d8b064f67000ee6 /elf/Makefile | |
parent | 67c37737ed474d25fd4dc535dfd822c426e6b971 (diff) | |
download | glibc-9fd63e35371b9939e9153907c6a753e6960b68ad.tar glibc-9fd63e35371b9939e9153907c6a753e6960b68ad.tar.gz glibc-9fd63e35371b9939e9153907c6a753e6960b68ad.tar.bz2 glibc-9fd63e35371b9939e9153907c6a753e6960b68ad.zip |
elf: Smoke-test ldconfig -p against system /etc/ld.so.cache
The test is sufficient to detect the ldconfig bug fixed in
commit 9fe6f6363886aae6b2b210cae3ed1f5921299083 ("elf: Fix 64 time_t
support for installed statically binaries").
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'elf/Makefile')
-rw-r--r-- | elf/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile index b509b3eada..2fc6391183 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -626,6 +626,7 @@ ifeq ($(run-built-tests),yes) tests-special += \ $(objpfx)noload-mem.out \ $(objpfx)tst-ldconfig-X.out \ + $(objpfx)tst-ldconfig-p.out \ $(objpfx)tst-leaks1-mem.out \ $(objpfx)tst-rtld-help.out \ # tests-special @@ -2396,6 +2397,11 @@ $(objpfx)tst-ldconfig-X.out : tst-ldconfig-X.sh $(objpfx)ldconfig '$(run-program-env)' > $@; \ $(evaluate-test) +$(objpfx)tst-ldconfig-p.out : tst-ldconfig-p.sh $(objpfx)ldconfig + $(SHELL) $< '$(common-objpfx)' '$(test-wrapper-env)' \ + '$(run-program-env)' > $@; \ + $(evaluate-test) + # Test static linking of all the libraries we can possibly link # together. Note that in some configurations this may be less than the # complete list of libraries we build but we try to maxmimize this list. |