From 3481c714c6eaaab5db9fd3b92dd296022573957a Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Tue, 27 Mar 2018 21:59:24 -0400 Subject: [PATCH] gnu: mu: Fix tests failures triggered by DST. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/mail.scm (mu)[phases]: Add 'fix-date-tests. Signed-off-by: Ludovic Courtès --- gnu/packages/mail.scm | 8 ++++++++ 1 file changed, 8 insertions(+) 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 @@ (define-public mu "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"