From 7b0612c91cb36dfaf7c807156c00fba1f8f34fcb Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 1 Jan 2021 21:03:31 +0100 Subject: [PATCH] posixtm tests: Disable part of the test on plaforms where it fails. * tests/test-posixtm.c (T): Disable two tests on macOS as well. --- ChangeLog | 5 +++++ tests/test-posixtm.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1f05651c4f..1989ffcc0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2021-01-01 Bruno Haible + + 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 c32isgraph/c32isprint/c32ispunct tests: Avoid test failures on OmniOS. diff --git a/tests/test-posixtm.c b/tests/test-posixtm.c index 0d5560814d..ea20564bd9 100644 --- a/tests/test-posixtm.c +++ b/tests/test-posixtm.c @@ -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, -- 2.39.5