aboutsummaryrefslogtreecommitdiff
path: root/resolv/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-07-03 15:01:34 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-07-03 21:07:11 +0200
commite237357a5a0559dee92261f1914d1fa2cd43a1a8 (patch)
tree3e1bf60f7b358c3e662a01d567f1b839a3a10060 /resolv/Makefile
parentaef16cc8a4c670036d45590877d411a97f01e0cd (diff)
downloadglibc-e237357a5a0559dee92261f1914d1fa2cd43a1a8.zip
glibc-e237357a5a0559dee92261f1914d1fa2cd43a1a8.tar.gz
glibc-e237357a5a0559dee92261f1914d1fa2cd43a1a8.tar.bz2
resolv: Introduce free list for resolv_conf index slosts
Diffstat (limited to 'resolv/Makefile')
-rw-r--r--resolv/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/resolv/Makefile b/resolv/Makefile
index d5338f1..5cb2e53 100644
--- a/resolv/Makefile
+++ b/resolv/Makefile
@@ -63,6 +63,9 @@ tests-internal += \
tst-resolv-res_init \
tst-resolv-res_init-thread \
+# Needs resolv_context.
+tests-internal += tst-resolv-res_ninit
+
endif
# This test accesses __inet_ntop_range, an internal libc function.
@@ -103,6 +106,7 @@ ifeq ($(run-built-tests),yes)
ifneq (no,$(PERL))
tests-special += $(objpfx)mtrace-tst-leaks.out
xtests-special += $(objpfx)mtrace-tst-leaks2.out
+tests-special += $(objpfx)mtrace-tst-resolv-res_ninit.out
endif
endif
@@ -114,7 +118,8 @@ headers += rpc/netdb.h
endif
generated += mtrace-tst-leaks.out tst-leaks.mtrace \
- mtrace-tst-leaks2.out tst-leaks2.mtrace
+ mtrace-tst-leaks2.out tst-leaks2.mtrace \
+ mtrace-tst-resolv-res_ninit.out tst-resolv-res_ninit.mtrace \
include ../Rules
@@ -142,6 +147,12 @@ $(objpfx)mtrace-tst-leaks2.out: $(objpfx)tst-leaks2.out
$(common-objpfx)malloc/mtrace $(objpfx)tst-leaks2.mtrace > $@; \
$(evaluate-test)
+tst-resolv-res_ninit-ENV = MALLOC_TRACE=$(objpfx)tst-resolv-res_ninit.mtrace
+$(objpfx)mtrace-tst-resolv-res_ninit.out: $(objpfx)tst-resolv-res_ninit.out
+ $(common-objpfx)malloc/mtrace \
+ $(objpfx)tst-resolv-res_ninit.mtrace > $@; \
+ $(evaluate-test)
+
$(objpfx)tst-bug18665-tcp: $(objpfx)libresolv.so $(shared-thread-library)
$(objpfx)tst-bug18665: $(objpfx)libresolv.so $(shared-thread-library)
$(objpfx)tst-res_use_inet6: $(objpfx)libresolv.so $(shared-thread-library)