mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
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>
This commit is contained in:
parent
910deec66c
commit
3481c714c6
1 changed files with 8 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue