2015-09-28 Martin Sebor <msebor@redhat.com>
[BZ #18969]
* stdlib/Makefile: Include gen-locales.mk.
(test-isomac.out, testmb2.out, tst-strtod.out, tst-strtod3.out)
(tst-strtod4.out, tst-strtod5.out): Add dependency on $(gen-locales).
* time/Makefile: Include gen-locales.mk.
(tst-ftime_l.out, tst-stptime.out): Add dependency on $(gen-locales).
* wcsmbs/Makefile: Include gen-locales.mk.
(tst-btowc.out, tst-c16c32-1.out, tst-mbrtowc.out,tst-mbrtowc2.out):
(tst-wcrtomb.out): Add dependency on $(gen-locales).
@@ -116,6 +116,18 @@ CFLAGS-tst-makecontext2.c = $(stack-align-test-flags)
tests-special += $(objpfx)isomac.out
ifeq ($(run-built-tests),yes)
+
+LOCALES := cs_CZ.UTF-8 de_DE.UTF-8 en_US.ISO-8859-1 \
+ tr_TR.ISO-8859-9 tr_TR.UTF-8
+include ../gen-locales.mk
+
+$(objpfx)test-isomac.out: $(gen-locales)
+$(objpfx)testmb2.out: $(gen-locales)
+$(objpfx)tst-strtod.out: $(gen-locales)
+$(objpfx)tst-strtod3.out: $(gen-locales)
+$(objpfx)tst-strtod4.out: $(gen-locales)
+$(objpfx)tst-strtod5.out: $(gen-locales)
+
tests-special += $(objpfx)tst-fmtmsg.out
endif
@@ -41,6 +41,15 @@ tests := test_time clocktest tst-posixtz tst-strptime tst_wcsftime \
include ../Rules
+ifeq ($(run-built-tests),yes)
+
+LOCALES := de_DE.ISO-8859-1
+include ../gen-locales.mk
+
+$(objpfx)tst-ftime_l.out: $(gen-locales)
+$(objpfx)tst-stptime.out: $(gen-locales)
+endif
+
tz-cflags = -DTZDIR='"$(zonedir)"' \
-DTZDEFAULT='"$(localtime-file)"' \
-DTZDEFRULES='"$(posixrules-file)"'
@@ -51,6 +51,18 @@ tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \
include ../Rules
+ifeq ($(run-built-tests),yes)
+
+LOCALES := de_DE.ISO-8859-1 de_DE.UTF-8 hr_HR.ISO-8859-2 ja_JP.EUC-JP
+include ../gen-locales.mk
+
+$(objpfx)tst-btowc.out: $(gen-locales)
+$(objpfx)tst-c16c32-1.out: $(gen-locales)
+$(objpfx)tst-mbrtowc.out: $(gen-locales)
+$(objpfx)tst-mbrtowc2.out: $(gen-locales)
+$(objpfx)tst-wcrtomb.out: $(gen-locales)
+endif
+
CFLAGS-wcwidth.c = -I../wctype
CFLAGS-wcswidth.c = -I../wctype