]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
posixtm tests: Avoid test failure on Haiku.
authorCollin Funk <collin.funk1@gmail.com>
Thu, 24 Jul 2025 03:54:50 +0000 (20:54 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Thu, 24 Jul 2025 03:54:50 +0000 (20:54 -0700)
* tests/test-posixtm.c (T): On Haiku, disable test cases that would
fail.

ChangeLog
tests/test-posixtm.c

index 5a30fab82d9ebc3e67966d4277a741f0dce96a43..33bd581f888097c2cd81785fb25165e2d8089118 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2025-07-23  Collin Funk  <collin.funk1@gmail.com>
 
+       posixtm tests: Avoid test failure on Haiku.
+       * tests/test-posixtm.c (T): On Haiku, disable test cases that would
+       fail.
+
        sethostname tests: Avoid test failure on Haiku.
        * tests/test-sethostname2.c (main): On Haiku, skip the "too long
        hostname" test.
index bace904ce261dd6f4e331d6ebfa90e9164efca66..f5f8ea1af101e45b5406a8e852256f23386d1d3a 100644 (file)
@@ -47,7 +47,7 @@ static struct posixtm_test const T[] =
     { "12131415",        LY, 1,            0}, /* ??? Dec 13 14:15:00 ???? */
 
 #if !((defined __APPLE__ && defined __MACH__) || defined __sun \
-      || (defined _WIN32 && !defined __CYGWIN__))
+      || defined __HAIKU__ || (defined _WIN32 && !defined __CYGWIN__))
     /* These two tests fail on 64-bit Mac OS X 10.5 and on 64-bit Solaris up
        through at least Solaris 11.3, which is off by one day for timestamps
        before 0001-01-01 00:00:00 UTC.  */
@@ -57,8 +57,10 @@ static struct posixtm_test const T[] =
                       - INT64_C (62135596801)},/* Fri Dec 31 23:59:59 0    */
 #endif
 #if !(defined _WIN32 && !defined __CYGWIN__)
+# if !defined __HAIKU__
     { "000101010000.00", LY, 1,
                       - INT64_C (62135596800)},/* Sat Jan  1 00:00:00 1    */
+# endif
     { "190112132045.51", LY, 1,
                        - INT64_C (2147483649)},/* Fri Dec 13 20:45:51 1901 */
     { "190112132045.52", LY, 1,