public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Make tst-strftime2 depend on locale generation
@ 2019-10-08 17:45 Gabriel F. T. Gomes
  2019-10-08 18:23 ` Florian Weimer
  2019-10-08 18:48 ` [PATCH] " Tulio Magno Quites Machado Filho
  0 siblings, 2 replies; 5+ messages in thread
From: Gabriel F. T. Gomes @ 2019-10-08 17:45 UTC (permalink / raw)
  To: libc-alpha; +Cc: pc

From: "Gabriel F. T. Gomes" <gabrielftg@linux.ibm.com>

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

Tested for powerpc64le.
---
 time/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/time/Makefile b/time/Makefile
index b9217992a6..cface6f68a 100644
--- a/time/Makefile
+++ b/time/Makefile
@@ -61,6 +61,7 @@ include ../gen-locales.mk
 
 $(objpfx)tst-ftime_l.out: $(gen-locales)
 $(objpfx)tst-strptime.out: $(gen-locales)
+$(objpfx)tst-strftime2.out: $(gen-locales)
 endif
 
 tz-cflags = -DTZDIR='"$(zonedir)"' \
-- 
2.21.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Make tst-strftime2 depend on locale generation
  2019-10-08 17:45 [PATCH] Make tst-strftime2 depend on locale generation Gabriel F. T. Gomes
@ 2019-10-08 18:23 ` Florian Weimer
  2019-10-08 20:43   ` [PATCH v2] " Gabriel F. T. Gomes
  2019-10-08 18:48 ` [PATCH] " Tulio Magno Quites Machado Filho
  1 sibling, 1 reply; 5+ messages in thread
From: Florian Weimer @ 2019-10-08 18:23 UTC (permalink / raw)
  To: Gabriel F. T. Gomes; +Cc: libc-alpha, pc

* Gabriel F. T. Gomes:

> From: "Gabriel F. T. Gomes" <gabrielftg@linux.ibm.com>
>
> Building the test cases in parallel might make tst-strftime2 fail.
> Simply re-running the test case (or building with -j1) makes the problem
> go away.  This patch adds the necessary dependency to allow parallel
> builds in the time subdirectory.
>
> Tested for powerpc64le.
> ---
>  time/Makefile | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/time/Makefile b/time/Makefile
> index b9217992a6..cface6f68a 100644
> --- a/time/Makefile
> +++ b/time/Makefile
> @@ -61,6 +61,7 @@ include ../gen-locales.mk
>  
>  $(objpfx)tst-ftime_l.out: $(gen-locales)
>  $(objpfx)tst-strptime.out: $(gen-locales)
> +$(objpfx)tst-strftime2.out: $(gen-locales)
>  endif
>  
>  tz-cflags = -DTZDIR='"$(zonedir)"' \

Doesn't tst-strftime3 have the same problem?  Looks good otherwise.

(We still don't have the official switchover to ChangeLog-less
commits, so this still needs an entry there.)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Make tst-strftime2 depend on locale generation
  2019-10-08 17:45 [PATCH] Make tst-strftime2 depend on locale generation Gabriel F. T. Gomes
  2019-10-08 18:23 ` Florian Weimer
@ 2019-10-08 18:48 ` Tulio Magno Quites Machado Filho
  1 sibling, 0 replies; 5+ messages in thread
From: Tulio Magno Quites Machado Filho @ 2019-10-08 18:48 UTC (permalink / raw)
  To: Gabriel F. T. Gomes, libc-alpha; +Cc: pc

"Gabriel F. T. Gomes" <gabriel@inconstante.net.br> writes:

> From: "Gabriel F. T. Gomes" <gabrielftg@linux.ibm.com>
>
> Building the test cases in parallel might make tst-strftime2 fail.
> Simply re-running the test case (or building with -j1) makes the problem
> go away.  This patch adds the necessary dependency to allow parallel
> builds in the time subdirectory.
>
> Tested for powerpc64le.

LGTM as-is.  I confirmed it solves the issue.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>

> diff --git a/time/Makefile b/time/Makefile
> index b9217992a6..cface6f68a 100644
> --- a/time/Makefile
> +++ b/time/Makefile
> @@ -61,6 +61,7 @@ include ../gen-locales.mk
>  
>  $(objpfx)tst-ftime_l.out: $(gen-locales)
>  $(objpfx)tst-strptime.out: $(gen-locales)
> +$(objpfx)tst-strftime2.out: $(gen-locales)

Likewise for tst-strftime3.out ?
I've never seen an error there, but the test does depend on locales too.

-- 
Tulio Magno

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2] Make tst-strftime2 depend on locale generation
  2019-10-08 18:23 ` Florian Weimer
@ 2019-10-08 20:43   ` Gabriel F. T. Gomes
  2019-10-08 20:44     ` Florian Weimer
  0 siblings, 1 reply; 5+ messages in thread
From: Gabriel F. T. Gomes @ 2019-10-08 20:43 UTC (permalink / raw)
  To: Florian Weimer; +Cc: libc-alpha, pc, Tulio Magno Quites Machado Filho

On Tue, 08 Oct 2019, Florian Weimer wrote:
>
>Doesn't tst-strftime3 have the same problem?  Looks good otherwise.

On Tue, 08 Oct 2019, Tulio Magno Quites Machado Filho wrote:
>
>Likewise for tst-strftime3.out ?
>I've never seen an error there, but the test does depend on locales too.

Yes, you are right.  I haven't noticed a problem because these test may
get the locale from the system and the locale from the system I'm testing
on was good/new enough for tst-strftime3 (but not for tst-strftime2).

With the system locales deleted/inaccessible, both tests may fail before
v1 of this patch.  The following version solves the problem for both
tst-strftime2 and tst-strftime3, as well as it adds a ChangeLog entry.

Is the following patch OK for master?

From 083391d58262b045f39c59253dfb3f60e80a4531 Mon Sep 17 00:00:00 2001
From: "Gabriel F. T. Gomes" <gabrielftg@linux.ibm.com>
Date: Tue, 8 Oct 2019 14:32:17 -0300
Subject: [PATCH v2] 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.

	* Makefile: Fix locale dependency for a couple of tests.
	($(objpfx)tst-strftime2.out): New rule.
	($(objpfx)tst-strftime3.out): Likewise.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
---
 time/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/time/Makefile b/time/Makefile
index b9217992a6..ad8844ea34 100644
--- a/time/Makefile
+++ b/time/Makefile
@@ -61,6 +61,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)"' \
-- 
2.22.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] Make tst-strftime2 depend on locale generation
  2019-10-08 20:43   ` [PATCH v2] " Gabriel F. T. Gomes
@ 2019-10-08 20:44     ` Florian Weimer
  0 siblings, 0 replies; 5+ messages in thread
From: Florian Weimer @ 2019-10-08 20:44 UTC (permalink / raw)
  To: Gabriel F. T. Gomes; +Cc: libc-alpha, pc, Tulio Magno Quites Machado Filho

* Gabriel F. T. Gomes:

> Is the following patch OK for master?

> diff --git a/time/Makefile b/time/Makefile
> index b9217992a6..ad8844ea34 100644
> --- a/time/Makefile
> +++ b/time/Makefile
> @@ -61,6 +61,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)"' \

Yes, this looks good.  Please commit.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-10-08 20:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-08 17:45 [PATCH] Make tst-strftime2 depend on locale generation Gabriel F. T. Gomes
2019-10-08 18:23 ` Florian Weimer
2019-10-08 20:43   ` [PATCH v2] " Gabriel F. T. Gomes
2019-10-08 20:44     ` Florian Weimer
2019-10-08 18:48 ` [PATCH] " Tulio Magno Quites Machado Filho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).