From 2c04db80e2c52b8f05b4136af955510e7d370470 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 30 Mar 2024 22:50:39 +0100 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ tests/test-localtime_r-mt.c | 2 +- tests/test-localtime_r.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) 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; } -- 2.39.5