]> Savannah Git Hosting - gnulib.git/commitdiff
nstrftime tests: Avoid test failures on FreeBSD, NetBSD, Android.
authorBruno Haible <bruno@clisp.org>
Wed, 7 Feb 2024 11:46:09 +0000 (12:46 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Feb 2024 23:27:39 +0000 (00:27 +0100)
* tests/test-nstrftime.c (LT): Disable specific test cases on FreeBSD,
NetBSD, Android.

ChangeLog
tests/test-nstrftime.c

index 61025d43ec3adcbb45cebdeb1496be227622ed32..4aa9666df105c7fdd77dee41ef38631d6fb20940 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-02-07  Bruno Haible  <bruno@clisp.org>
+
+       nstrftime tests: Avoid test failures on FreeBSD, NetBSD, Android.
+       * tests/test-nstrftime.c (LT): Disable specific test cases on FreeBSD,
+       NetBSD, Android.
+
 2024-02-06  Bruno Haible  <bruno@clisp.org>
 
        nl_langinfo: Fix fallback list of month names (regression 2014-07-07).
index 22dab6c9e4e896f918a1f0a562437e08e9974323..3179da8ada3c6a8f5e4fc8c444195d693f8c7028 100644 (file)
@@ -1,5 +1,5 @@
 /* Test that nstrftime works as required.
-   Copyright (C) 2011-2023 Free Software Foundation, Inc.
+   Copyright (C) 2011-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -125,12 +125,18 @@ struct localtime_rz_test
 
 static struct localtime_rz_test LT[] =
   {
+#if !(defined __NetBSD__ || defined __ANDROID__)
     { TZ+Pacific,          0, "1969-12-31 16:00:00 -0800 (PST)",  0 },
+#endif
     { TZ+Arizona,          0, "1969-12-31 17:00:00 -0700 (MST)",  0 },
     { TZ+UTC    ,          0, "1970-01-01 00:00:00 +0000 (UTC)",  0 },
+#if !(defined __NetBSD__ || defined __ANDROID__)
     { TZ+CentEur,          0, "1970-01-01 01:00:00 +0100 (CET)",  0 },
+#endif
     { TZ+Japan  ,          0, "1970-01-01 09:00:00 +0900 (JST)",  0 },
+#if !defined __FreeBSD__
     { TZ+NZ     ,          0, "1970-01-01 13:00:00 +1300 (NZDT)", 1 },
+#endif
     { TZ+Pacific,  500000001, "1985-11-04 16:53:21 -0800 (PST)",  0 },
     { TZ+Arizona,  500000001, "1985-11-04 17:53:21 -0700 (MST)",  0 },
     { TZ+UTC    ,  500000001, "1985-11-05 00:53:21 +0000 (UTC)",  0 },
@@ -143,7 +149,7 @@ static struct localtime_rz_test LT[] =
     { TZ+CentEur, 1000000002, "2001-09-09 03:46:42 +0200 (CEST)", 0 },
     { TZ+Japan  , 1000000002, "2001-09-09 10:46:42 +0900 (JST)",  0 },
     { TZ+NZ     , 1000000002, "2001-09-09 13:46:42 +1200 (NZST)", 0 },
-#if TZ_ANGLE_BRACKETS_SHOULD_WORK
+#if TZ_ANGLE_BRACKETS_SHOULD_WORK && !defined __FreeBSD__
     { TZ+Unknown,          0, "1970-01-01 00:00:00 -0000 (-00)",  0 },
     { TZ+Unknown,  500000001, "1985-11-05 00:53:21 -0000 (-00)",  0 },
     { TZ+Unknown, 1000000002, "2001-09-09 01:46:42 -0000 (-00)",  0 },