Make tst-strftime2 and tst-strftime3 depend on locale generation

Building the test cases in parallel might make tst-strftime2 and
tst-strftime3 fail.  Simply re-running the test case (or building
serially) makes the problem go away.  This patch adds the necessary
dependency to allow parallel builds in the time subdirectory.

Tested for powerpc64le.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
(cherry picked from commit 52151051b3)
This commit is contained in:
Gabriel F. T. Gomes 2019-10-08 14:32:17 -03:00 committed by Dmitry V. Levin
parent 5397c399f9
commit fca2d6186a
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2019-10-08 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
* Makefile: Fix locale dependency for a couple of tests.
($(objpfx)tst-strftime2.out): New rule.
($(objpfx)tst-strftime3.out): Likewise.
2019-09-20 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/riscv/vfork.S: Do not include

View File

@ -57,6 +57,8 @@ include ../gen-locales.mk
$(objpfx)tst-ftime_l.out: $(gen-locales)
$(objpfx)tst-strptime.out: $(gen-locales)
$(objpfx)tst-strftime2.out: $(gen-locales)
$(objpfx)tst-strftime3.out: $(gen-locales)
endif
tz-cflags = -DTZDIR='"$(zonedir)"' \