about summary refs log tree commit diff
path: root/resolv/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-07-21 18:30:11 +0000
committerUlrich Drepper <drepper@redhat.com>2004-07-21 18:30:11 +0000
commit2ed2dc184687ed609f7223bb5e9b30712742e876 (patch)
tree02e751efa30036e368c34d32c4c81c670afbb3c2 /resolv/Makefile
parent84b5ba7ecf85e45792d1571c2b29a8f2dbf1c989 (diff)
downloadglibc-2ed2dc184687ed609f7223bb5e9b30712742e876.tar.gz
glibc-2ed2dc184687ed609f7223bb5e9b30712742e876.tar.xz
glibc-2ed2dc184687ed609f7223bb5e9b30712742e876.zip
Update.
2004-07-21  Jakub Jelinek  <jakub@redhat.com>

	* resolv/res_libc.c (res_init): If RES_INIT is set and
	_res.nscount > 0, call __res_nclose and free nsaddrs.
	* resolv/Makefile: Add rules to build and run tst-leaks2.
	* resolv/tst-leaks2.c: New test.
Diffstat (limited to 'resolv/Makefile')
-rw-r--r--resolv/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/resolv/Makefile b/resolv/Makefile
index 743586b376..a91e8a6f44 100644
--- a/resolv/Makefile
+++ b/resolv/Makefile
@@ -33,8 +33,9 @@ routines := herror inet_addr inet_ntop inet_pton nsap_addr res_init \
 	    res_hconf res_libc res-state
 
 tests = tst-aton tst-leaks
+xtests = tst-leaks2
 
-generate := mtrace-tst-leaks tst-leaks.mtrace
+generate := mtrace-tst-leaks tst-leaks.mtrace tst-leaks2.mtrace
 
 include ../Makeconfig
 
@@ -65,7 +66,8 @@ ifeq (yesyes,$(build-shared)$(have-thread-library))
 tests: $(objpfx)ga_test
 endif
 
-generated := mtrace-tst-leaks tst-leaks.mtrace
+generated := mtrace-tst-leaks tst-leaks.mtrace \
+	     mtrace-tst-leaks2 tst-leaks2.mtrace
 
 include ../Rules
 
@@ -104,3 +106,12 @@ ifneq (no,$(PERL))
 tests: $(objpfx)mtrace-tst-leaks
 endif
 endif
+
+tst-leaks2-ENV = MALLOC_TRACE=$(objpfx)tst-leaks2.mtrace
+$(objpfx)mtrace-tst-leaks2: $(objpfx)tst-leaks2.out
+	$(common-objpfx)malloc/mtrace $(objpfx)tst-leaks2.mtrace > $@
+ifeq (no,$(cross-compiling))
+ifneq (no,$(PERL))
+xtests: $(objpfx)mtrace-tst-leaks2
+endif
+endif