[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/04: gnu: mu: Fix tests failures triggered by DST.
From: |
Ludovic Courtès |
Subject: |
03/04: gnu: mu: Fix tests failures triggered by DST. |
Date: |
Wed, 28 Mar 2018 11:18:56 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 3481c714c6eaaab5db9fd3b92dd296022573957a
Author: Maxim Cournoyer <address@hidden>
Date: Tue Mar 27 21:59:24 2018 -0400
gnu: mu: Fix tests failures triggered by DST.
* gnu/packages/mail.scm (mu)[phases]: Add 'fix-date-tests.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/mail.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 9414dff..3dab132 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"