From: Bruno Haible Date: Sat, 30 Mar 2024 21:50:39 +0000 (+0100) Subject: time_r tests: Avoid misleading skip message on native Windows. X-Git-Tag: v1.0~204 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=2c04db80e2c52b8f05b4136af955510e7d370470;p=gnulib.git 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/ChangeLog b/ChangeLog index ecb4632196..37fe6dce71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-03-30 Bruno Haible + + 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 time_r-tests: skip French tests if no Europe/Paris 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; }