File: test-regression.patch

package info (click to toggle)
libical3 3.0.20-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,068 kB
  • sloc: ansic: 37,740; xml: 6,726; cpp: 6,414; python: 2,551; perl: 1,613; java: 1,415; yacc: 1,136; sh: 520; lex: 133; makefile: 46; php: 10
file content (17 lines) | stat: -rw-r--r-- 1,183 bytes parent folder | download | duplicates (3)
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);