From e541a7a48ef162895bd5840f3bddfcd23bb231ac Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 9 Jun 2020 10:53:22 -0400 Subject: tests/xtimegm: Don't test the year 1900 macOS doesn't support negative time_t's that are larger than 32 bits apparently. C.f.: https://stackoverflow.com/a/46335905 --- tests/xtimegm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/xtimegm.c') diff --git a/tests/xtimegm.c b/tests/xtimegm.c index 2426815..2fc7fba 100644 --- a/tests/xtimegm.c +++ b/tests/xtimegm.c @@ -55,7 +55,7 @@ int main(void) { .tm_isdst = -1, }; - for (tm.tm_year = 0; tm.tm_year <= 200; tm.tm_year += 10) + for (tm.tm_year = 10; tm.tm_year <= 200; tm.tm_year += 10) for (tm.tm_mon = -3; tm.tm_mon <= 15; tm.tm_mon += 3) for (tm.tm_mday = -31; tm.tm_mday <= 61; tm.tm_mday += 4) for (tm.tm_hour = -1; tm.tm_hour <= 24; tm.tm_hour += 5) -- cgit v1.2.3