summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-06-09 10:53:22 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-06-09 10:53:22 -0400
commite541a7a48ef162895bd5840f3bddfcd23bb231ac (patch)
tree41c6db7cffc7d2bd2c3e87721af7e8571f5b1adf /tests
parent9d38bc79ae203a18b43480ecb43e540847d472a3 (diff)
downloadbfs-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')
-rw-r--r--tests/xtimegm.c2
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)