From fd13f80cd7b276bce1978ccc10d076aa60341411 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 1 Jan 2021 00:42:34 +0100 Subject: [PATCH] posixtm tests: Disable part of the test on plaforms where it fails. * tests/test-posixtm.c (T): Disable two tests on Solaris. --- ChangeLog | 5 +++++ tests/test-posixtm.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bf98e8005c..bc807d0afb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2020-12-31 Bruno Haible + 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 + poll tests: Avoid test failure on AIX. * tests/test-poll.c (test_pipe): Disable the "expecting POLLHUP after shutdown" test on AIX. diff --git a/tests/test-posixtm.c b/tests/test-posixtm.c index d9972a6d39..03996dc134 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 */ -- 2.11.4.GIT