]> Savannah Git Hosting - gnulib.git/commitdiff
time_r tests: Avoid misleading skip message on native Windows.
authorBruno Haible <bruno@clisp.org>
Sat, 30 Mar 2024 21:50:39 +0000 (22:50 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 30 Mar 2024 21:50:39 +0000 (22:50 +0100)
* tests/test-localtime_r.c (main): Use the macro FRENCH_TZ.
* tests/test-localtime_r-mt.c (main): Likewise.

ChangeLog
tests/test-localtime_r-mt.c
tests/test-localtime_r.c

index ecb46321962c6b876a4b63b430503f8b60189d19..37fe6dce71247add88dd7ac8dd2d650cef0bd996 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
 2024-03-30  Paul Eggert  <eggert@cs.ucla.edu>
 
        time_r-tests: skip French tests if no Europe/Paris
index b09e86854f953e6f5b0f8016b3a7a453c616ab2e..05921ad06132594ba3a94d4420e9ce64786685e4 100644 (file)
@@ -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;
       }
index 6b3da1af1997f2944dd27d4bf1c6be9cd955b524..c1dc43ed20b609a5428028417552da2a91fff1c7 100644 (file)
@@ -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;
       }