about summary refs log tree commit diff
path: root/libio/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-07-27 18:09:56 +0000
committerUlrich Drepper <drepper@redhat.com>2001-07-27 18:09:56 +0000
commit277f8cdf9849ec2d701b17dab05199e8fe044b89 (patch)
tree6de2112695f784d6b18684425ce654db6ff3401d /libio/Makefile
parent8e567f5cfa43fbd3693670b6c935b98e52b9f195 (diff)
downloadglibc-277f8cdf9849ec2d701b17dab05199e8fe044b89.tar.gz
glibc-277f8cdf9849ec2d701b17dab05199e8fe044b89.tar.xz
glibc-277f8cdf9849ec2d701b17dab05199e8fe044b89.zip
Update.
	* libio/Makefile: Add rules to check output of tst-fopenloc and
	for memory leaks.
	* libio/tst-fopenloc.c: New file.
Diffstat (limited to 'libio/Makefile')
-rw-r--r--libio/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/libio/Makefile b/libio/Makefile
index df8c93c0c2..f49755eef4 100644
--- a/libio/Makefile
+++ b/libio/Makefile
@@ -47,7 +47,7 @@ routines	:=							      \
 	libc_fatal fmemopen
 
 tests = tst_swprintf tst_wprintf tst_swscanf tst_wscanf tst_getwc tst_putwc   \
-	tst_wprintf2 tst-widetext test-fmemopen tst-ext
+	tst_wprintf2 tst-widetext test-fmemopen tst-ext tst-fopenloc
 test-srcs = test-freopen
 
 all: # Make this the default target; it will be defined in Rules.
@@ -80,6 +80,10 @@ CFLAGS-tst_putwc.c = -DOBJPFX=\"$(objpfx)\"
 tst_wprintf2-ARGS = "Some Text"
 
 tst-widetext-ENV = LOCPATH=$(common-objpfx)localedata LANGUAGE=C
+tst-fopenloc-ENV = LOCPATH=$(common-objpfx)localedata \
+		   MALLOC_TRACE=$(objpfx)tst-fopenloc.mtrace
+
+generated = tst-fopenloc.mtrace tst-fopenloc.check
 
 aux	:= fileops genops stdfiles stdio strops
 
@@ -98,9 +102,14 @@ distribute := iolibio.h libioP.h strfile.h Banner test-freopen.sh \
 include ../Rules
 
 ifeq (no,$(cross-compiling))
-tests: $(objpfx)test-freopen.out
+tests: $(objpfx)test-freopen.out $(objpfx)tst-fopenloc.check
 endif
 
 $(objpfx)test-freopen.out: test-freopen.sh $(objpfx)test-freopen
 	$(SHELL) -e $< $(common-objpfx) '$(run-program-prefix)'	\
 	$(common-objpfx)libio/
+
+$(objpfx)tst-fopenloc.check: $(objpfx)tst-fopenloc.out
+	cmp ../iconvdata/testdata/ISO-8859-1..UTF8 $(objpfx)tst-fopenloc.out \
+	  > $@
+	$(common-objpfx)malloc/mtrace $(objpfx)tst-fopenloc.mtrace >> $@