From 95eaff64c7276cce271e368f097dea0c40ccb8b5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 27 Oct 2001 03:00:50 +0000 Subject: Update. * posix/tst-fnmatch.input: Add tests for - at beginning and end of bracket expression. * string/tst-strxfrm.c (test): Also test __strxfrm_l. --- string/tst-strxfrm.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'string') diff --git a/string/tst-strxfrm.c b/string/tst-strxfrm.c index 94fd67e062..aef5e4e4ee 100644 --- a/string/tst-strxfrm.c +++ b/string/tst-strxfrm.c @@ -15,6 +15,7 @@ test (const char *locale) size_t r; size_t l; char *buf; + __locale_t loc; int result = 0; if (setlocale (LC_COLLATE, locale) == NULL) @@ -37,6 +38,20 @@ test (const char *locale) locale, r, l); result = 1; } + + loc = __newlocale (1 << LC_ALL, locale, NULL); + + r = __strxfrm_l (buf, string, bufsize, loc); + l = strlen (buf); + if (r != l) + { + printf ("locale \"%s\": strxfrm_l returned %zu, strlen returned %zu\n", + locale, r, l); + result = 1; + } + + __freelocale (loc); + free (buf); return result; -- cgit 1.4.1