From 277f8cdf9849ec2d701b17dab05199e8fe044b89 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 27 Jul 2001 18:09:56 +0000 Subject: Update. * libio/Makefile: Add rules to check output of tst-fopenloc and for memory leaks. * libio/tst-fopenloc.c: New file. --- libio/Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'libio/Makefile') 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 >> $@ -- cgit v1.2.3