]> Savannah Git Hosting - gnulib.git/commitdiff
posixtm tests: Disable part of the test on plaforms where it fails.
authorBruno Haible <bruno@clisp.org>
Fri, 1 Jan 2021 20:03:31 +0000 (21:03 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 1 Jan 2021 20:06:30 +0000 (21:06 +0100)
* tests/test-posixtm.c (T): Disable two tests on macOS as well.

ChangeLog
tests/test-posixtm.c

index 1f05651c4ff14a68354889bf1f082b4f2eeb2249..1989ffcc0d894ded8dd65029a90ca9f15bebb72e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-01-01  Bruno Haible  <bruno@clisp.org>
+
+       posixtm tests: Disable part of the test on plaforms where it fails.
+       * tests/test-posixtm.c (T): Disable two tests on macOS as well.
+
 2021-01-01  Bruno Haible  <bruno@clisp.org>
 
        c32isgraph/c32isprint/c32ispunct tests: Avoid test failures on OmniOS.
index 0d5560814d1c8647290cdc01af2fec4416d48578..ea20564bd9f4fa1d4f0b642ff76822c95ae25e36 100644 (file)
@@ -46,10 +46,10 @@ static struct posixtm_test const T[] =
     { "12131415.16",     LY, 1,            0}, /* ??? Dec 13 14:15:16 ???? */
     { "12131415",        LY, 1,            0}, /* ??? Dec 13 14:15:00 ???? */
 
-#if !defined __sun
-    /* These two tests fail 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.  */
+#if !((defined __APPLE__ && defined __MACH__) || defined __sun)
+    /* 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.  */
     { "000001010000.00", LY, 1,
                       - INT64_C (62167219200)},/* Sat Jan  1 00:00:00 0    */
     { "000012312359.59", LY, 1,