bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#70070: FAIL: test-localtime_r


From: Bruno Haible
Subject: Re: bug#70070: FAIL: test-localtime_r
Date: Sat, 30 Mar 2024 22:52:18 +0100

Paul Eggert wrote:
> I installed the attached to do that. I don't know whether this will fix 
> Andreas's problem, whatever it is.

Thanks. It will allow us to distinguish a completely dysfunctional
'Europe/Paris' from one which exists but does not have the correct data
about the DST begin and DST end dates.

I'm applying this follow-up:


2024-03-30  Bruno Haible  <bruno@clisp.org>

        time_r tests: Avoid misleading skip message on native Windows.
        * tests/test-localtime_r.c (main): Use the macro FRENCH_TZ.
        * tests/test-localtime_r-mt.c (main): Likewise.

diff --git a/tests/test-localtime_r-mt.c b/tests/test-localtime_r-mt.c
index b09e86854f..05921ad061 100644
--- a/tests/test-localtime_r-mt.c
+++ b/tests/test-localtime_r-mt.c
@@ -122,7 +122,7 @@ main (int argc, char *argv[])
            && result->tm_yday == 0
            && result->tm_isdst == 0))
       {
-        fputs ("Skipping test: TZ='Europe/Paris' is not Paris time\n",
+        fputs ("Skipping test: TZ='" FRENCH_TZ "' is not Paris time\n",
                stderr);
         return 77;
       }
diff --git a/tests/test-localtime_r.c b/tests/test-localtime_r.c
index 6b3da1af19..c1dc43ed20 100644
--- a/tests/test-localtime_r.c
+++ b/tests/test-localtime_r.c
@@ -58,7 +58,7 @@ main (void)
            && result->tm_yday == 0
            && result->tm_isdst == 0))
       {
-        fputs ("Skipping test: TZ='Europe/Paris' is not Paris time\n",
+        fputs ("Skipping test: TZ='" FRENCH_TZ "' is not Paris time\n",
                stderr);
         return 77;
       }






reply via email to

[Prev in Thread] Current Thread [Next in Thread]