summary refs log tree commit diff
path: root/gnu/packages/mail.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2018-03-27 21:59:24 -0400
committerLudovic Courtès <ludovic.courtes@inria.fr>2018-03-28 17:14:40 +0200
commit3481c714c6eaaab5db9fd3b92dd296022573957a (patch)
tree682ea071b90d2de18ba674bf5ea209b64cebd227 /gnu/packages/mail.scm
parent910deec66cac3f7f0cb881c6567f19bc92dbae64 (diff)
downloadguix-3481c714c6eaaab5db9fd3b92dd296022573957a.tar.gz
gnu: mu: Fix tests failures triggered by DST.
* gnu/packages/mail.scm (mu)[phases]: Add 'fix-date-tests.

Signed-off-by: Ludovic Courtès <ludovic.courtes@inria.fr>
Diffstat (limited to 'gnu/packages/mail.scm')
-rw-r--r--gnu/packages/mail.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 9414dffa3b..3dab1325e9 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -618,6 +618,14 @@ security functionality including PGP, S/MIME, SSH, and SSL.")
                             "guile/mu/Makefile.in")
                (("share/guile/site/2.0/") "share/guile/site/2.2/"))
              #t))
+         (add-after 'patch-configure 'fix-date-tests
+           ;; Loosen test tolerances to prevent failures caused by daylight
+           ;; saving time (DST).  See: https://github.com/djcb/mu/issues/1214.
+           (lambda _
+             (substitute* "lib/parser/test-utils.cc"
+               (("\\* 60 \\* 60, 1 },")
+                "* 60 * 60, 3600 + 1 },"))
+             #t))
          (add-before 'install 'fix-ffi
            (lambda* (#:key outputs #:allow-other-keys)
              (substitute* "guile/mu.scm"