1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Let 'make check subdirs=string' succeed even when it's invoked

immediately after glibc has been built and before 'make check'
(or after 'make clean').
This commit is contained in:
Martin Sebor
2015-09-28 16:55:57 -04:00
parent d36c75fc0d
commit 60cf80f09d
4 changed files with 25 additions and 3 deletions

View File

@ -75,4 +75,14 @@ ifeq ($(run-built-tests),yes)
$(objpfx)tst-svc-cmp.out: tst-svc.expect $(objpfx)tst-svc.out
cmp $^ > $@; \
$(evaluate-test)
LOCALES := de_DE.UTF-8 en_US.ISO-8859-1 en_US.UTF-8 \
tr_TR.ISO-8859-9 tr_TR.UTF-8
include ../gen-locales.mk
$(objpfx)test-strcasecmp.out: $(gen-locales)
$(objpfx)test-strncasecmp.out: $(gen-locales)
$(objpfx)tst-strxfrm.out: $(gen-locales)
$(objpfx)tst-strxfrm2.out: $(gen-locales)
endif

View File

@ -5,6 +5,8 @@
static int
do_test (void)
{
static const char test_locale[] = "de_DE.UTF-8";
int res = 0;
char buf[20];
@ -38,9 +40,9 @@ do_test (void)
res = 1;
}
if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL)
if (setlocale (LC_ALL, test_locale) == NULL)
{
puts ("setlocale failed");
printf ("cannot set locale \"%s\"\n", test_locale);
res = 1;
}
else