diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-06-27 07:59:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-06-27 07:59:20 +0000 |
commit | 7bcad280635fa97b7929f3427284cf5189363e95 (patch) | |
tree | 98469f126b629bc4bd91fc46df6a46113c2dbfcf | |
parent | 73111f03f837d13865a38e3a3aa3ad75e02f819c (diff) | |
download | glibc-7bcad280635fa97b7929f3427284cf5189363e95.zip glibc-7bcad280635fa97b7929f3427284cf5189363e95.tar.gz glibc-7bcad280635fa97b7929f3427284cf5189363e95.tar.bz2 |
Update.
2001-06-27 Ulrich Drepper <drepper@redhat.com>
* posix/tst-regex.c: Fix several bugs. Add more tests.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | localedata/ChangeLog | 5 | ||||
-rw-r--r-- | localedata/Makefile | 14 | ||||
-rw-r--r-- | localedata/tst-leaks.c | 18 |
4 files changed, 39 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2001-06-27 Ulrich Drepper <drepper@redhat.com> + + * posix/tst-regex.c: Fix several bugs. Add more tests. + 2001-06-26 Mark Kettenis <kettenis@gnu.org> * hurd/Makefile (user-interfaces): Add pfinet. diff --git a/localedata/ChangeLog b/localedata/ChangeLog index a954638..e5bf697 100644 --- a/localedata/ChangeLog +++ b/localedata/ChangeLog @@ -1,3 +1,8 @@ +2001-06-27 Ulrich Drepper <drepper@redhat.com> + + * Makefile: Add rules to build and run tst-leaks. + * tst-leaks.c: New file. + 2001-06-25 Jakub Jelinek <jakub@redhat.com> * locales/ro_RO (day): Use U0163 instead of U021B. diff --git a/localedata/Makefile b/localedata/Makefile index bf2f88d..e7e15eb 100644 --- a/localedata/Makefile +++ b/localedata/Makefile @@ -55,7 +55,7 @@ fmon-tests = n01y12 n02n40 n10y31 n11y41 n12y11 n20n32 n30y20 n41n00 \ y01y10 y02n22 y22n42 y30y21 y32n31 y40y00 y42n21 generated := $(test-input) $(test-output) sort-test.out tst-locale.out \ - tst-mbswcs.out + tst-mbswcs.out tst-leaks.mtrace mtrace-tst-leaks generated-dirs := $(ld-test-names) tt_TT de_DE.437 \ $(addprefix tstfmon_,$(fmon-tests)) \ @@ -90,7 +90,13 @@ locale_test_suite := tst_iswalnum tst_iswalpha tst_iswcntrl \ tst_wcsxfrm tst_wctob tst_wctomb tst_wctrans \ tst_wctype tst_wcwidth -tests = $(locale_test_suite) tst-digits tst-setlocale bug-iconv-trans +tests = $(locale_test_suite) tst-digits tst-setlocale bug-iconv-trans \ + tst-leaks +ifeq (yes,$(build-shared)) +ifneq (no,$(PERL)) +tests: $(objpfx)mtrace-tst-leaks +endif +endif endif # Files to install. @@ -259,3 +265,7 @@ tst-digits-ENV = $(TEST_MBWC_ENV) tst-setlocale-ENV = LOCPATH=$(common-objpfx)localedata LC_ALL=ja_JP.EUC-JP bug-iconv-trans-ENV = LOCPATH=$(common-objpfx)localedata + +tst-leaks-ENV = MALLOC_TRACE=$(objpfx)tst-leaks.mtrace +$(objpfx)mtrace-tst-leaks: $(objpfx)tst-leaks.out + $(common-objpfx)malloc/mtrace $(objpfx)tst-leaks.mtrace > $@ diff --git a/localedata/tst-leaks.c b/localedata/tst-leaks.c new file mode 100644 index 0000000..7a4b557 --- /dev/null +++ b/localedata/tst-leaks.c @@ -0,0 +1,18 @@ +#include <locale.h> +#include <mcheck.h> + +int +main (void) +{ + int cnt; + + mtrace (); + + for (cnt = 0; cnt < 100; ++cnt) + { + setlocale (LC_ALL, "de_DE.ISO-8859-1"); + setlocale (LC_ALL, "de_DE.UTF-8"); + } + + return 0; +} |