bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

posixtm failure on Solaris


From: Bruno Haible
Subject: posixtm failure on Solaris
Date: Fri, 01 Jan 2021 00:43:28 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; )

Hi Paul,

On Solaris 11.3, Solaris OpenIndiana, and Solaris OmniOS, I'm seeing this
test failure:

000001010000.00 mismatch (-: actual; +:expected)
--62167132800
+-62167219200
000012312359.59 return value mismatch: got 0, expected 1
FAIL test-posixtm (exit status: 1)

It was already reported in 2011 [1], and you said
"(Programmers get confused near the year zero,
 for some reason.  :-)  It's probably not worth worrying about."

I'm tired to see the same test failures over and over again. So I'm disabling
these tests on Solaris. Since, as you said, it's not worth worrying about,
I would guess that there is no need to update the documentation?

[1] https://lists.gnu.org/archive/html/bug-coreutils/2011-02/msg00065.html


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.

diff --git a/tests/test-posixtm.c b/tests/test-posixtm.c
index d9972a6..03996dc 100644
--- a/tests/test-posixtm.c
+++ b/tests/test-posixtm.c
@@ -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    */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]