ports/mail/gmime30/patches/patch-tests_test-mime_c

25 lines
942 B
Text
Raw Normal View History

2023-08-18 18:38:43 +00:00
64bit time_t + Test for rfc2047 token decoding logic for base64 encodings
2023-08-16 22:26:55 +00:00
Index: tests/test-mime.c
--- tests/test-mime.c.orig
+++ tests/test-mime.c
@@ -377,7 +377,7 @@ test_date_parser (void)
tz_offset *= sign;
if (time != dates[i].date)
- throw (exception_new ("time_t's do not match: actual: %ld; expected: %ld", time, dates[i].date));
+ throw (exception_new ("time_t's do not match: actual: %lld; expected: %lld", time, dates[i].date));
if (tz_offset != dates[i].tzone)
throw (exception_new ("timezones do not match"));
2023-08-18 18:38:43 +00:00
@@ -408,6 +408,9 @@ static struct {
"blah:\tI am broken",
"blah:\tI am broken" },
#endif
+ { "=?UTF-8?B?SGVsbG8=?= =?UTF-8?B?IHdvcmxk?=",
+ "Hello world",
+ "Hello world" },
{ "=?iso-8859-1?Q?Copy_of_Rapport_fra_Norges_R=E5fisklag=2Edoc?=",
"Copy of Rapport fra Norges R\xc3\xa5" "fisklag.doc",
"Copy of Rapport fra Norges =?iso-8859-1?q?R=E5fisklag=2Edoc?=" },