1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: fix lintian spelling-error-in-binary
Author: Nicolas Mora <nicolas@babelouest.org>
Forwarded: https://github.com/libical/libical/issues/606
--- a/src/test/regression.c
+++ b/src/test/regression.c
@@ -4960,9 +4960,11 @@
void test_icaltime_as_timet(void)
{
+#if (SIZEOF_TIME_T > 4)
ok("icaltime_from_string translates 19020101T000000Z to -2145916800", icaltime_as_timet(icaltime_from_string("19020101T000000Z")) == -2145916800);
ok("icaltime_from_string translates 19290519T000000Z to -1281916800", icaltime_as_timet(icaltime_from_string("19290519T000000Z")) == -1281916800);
ok("icaltime_from_string translates 19561004T000000Z to -417916800", icaltime_as_timet(icaltime_from_string("19561004T000000Z")) == -417916800);
+#endif
ok("icaltime_from_string translates 19700101T000000Z to 0", icaltime_as_timet(icaltime_from_string("19700101T000000Z")) == 0);
ok("icaltime_from_string translates 19700301T235959Z to 5183999", icaltime_as_timet(icaltime_from_string("19700301T235959Z")) == 5183999);
ok("icaltime_from_string translates 19970717T235959Z to 869183999", icaltime_as_timet(icaltime_from_string("19970717T235959Z")) == 869183999);
|