]> Savannah Git Hosting - gnulib.git/commitdiff
posixtm tests: Disable part of the test on plaforms where it fails.
authorBruno Haible <bruno@clisp.org>
Thu, 31 Dec 2020 23:42:34 +0000 (00:42 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 31 Dec 2020 23:42:34 +0000 (00:42 +0100)
* tests/test-posixtm.c (T): Disable two tests on Solaris.

ChangeLog
tests/test-posixtm.c

index bf98e8005ce6644379bab707c876b59258e52f01..bc807d0afba36614539134a1e8b03d46bfb0fcbe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-12-31  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 Solaris.
+
 2020-12-31  Bruno Haible  <bruno@clisp.org>
 
        poll tests: Avoid test failure on AIX.
index d9972a6d3926748e084d73ff1c7cbd7612866ef9..03996dc134e514b95c0d39f3a21635ab0f666e40 100644 (file)
@@ -46,13 +46,15 @@ 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 10, which is off by one day for timestamps before
+       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,
                       - INT64_C (62135596801)},/* Fri Dec 31 23:59:59 0    */
+#endif
 
     { "000101010000.00", LY, 1,
                       - INT64_C (62135596800)},/* Sat Jan  1 00:00:00 1    */