diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-06-09 10:53:22 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-06-09 10:53:22 -0400 |
commit | e541a7a48ef162895bd5840f3bddfcd23bb231ac (patch) | |
tree | 41c6db7cffc7d2bd2c3e87721af7e8571f5b1adf /tests/xtimegm.c | |
parent | 9d38bc79ae203a18b43480ecb43e540847d472a3 (diff) | |
download | bfs-e541a7a48ef162895bd5840f3bddfcd23bb231ac.tar.xz |
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
Diffstat (limited to 'tests/xtimegm.c')
-rw-r--r-- | tests/xtimegm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |