Red Hat Bugzilla – Bug 968255
MIMEUtilTest fails if performed in wrong timezone (east to UTC)
Last modified: 2013-05-29 17:31:51 EDT
Description of problem:
Tests in unit-tests/MIMEUtilTest.cc (namely, set_mime_text_test() and rfc822_date_test()) fail if performed in eastern (related to UTC) timezones since mktime()
Version-Release number of selected component (if applicable):
Tested with 3.11.0-2, but quick look at 3.11.3-3 reveals no differences in this part of code.
Steps to Reproduce:
1. Set tomezone to UTC+smth (Europe/Moscow is fine).
2. Try to build package.
Tests set_mime_text_test() and rfc822_date_test() fail which fails the build.
Tests set_mime_text_test() and rfc822_date_test() should pass.
Some quick patch (against 3.11.0, but should apply also against 3.11.3 since difference between those two versions of this file is negligible) which should likely solve the problem.
Created attachment 754280 [details]
Patch for the TZ-sensitive test
I would suggest sending this to email@example.com, they are pretty responsive. I'm afraid I'm not really interested in maintaining a patch that just fixes a testcase.