unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#30968] [PATCH] gnu: mu: Fix tests failures triggered by DST.
@ 2018-03-28  2:04 Maxim Cournoyer
  2018-03-28 15:14 ` bug#30968: " Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Maxim Cournoyer @ 2018-03-28  2:04 UTC (permalink / raw)
  To: 30968

[-- Attachment #1: Type: text/plain, Size: 69 bytes --]

Hello!

This fixes test failures for our mu package.

Thanks!

Maxim

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-mu-Fix-tests-failures-triggered-by-DST.patch --]
[-- Type: text/x-patch, Size: 1252 bytes --]

From b6c27eab14b678d12dd4b3b480ea88542bf096e7 Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Date: Tue, 27 Mar 2018 21:59:24 -0400
Subject: [PATCH] gnu: mu: Fix tests failures triggered by DST.

* gnu/packages/mail.scm (mu)[phases]: Add 'fix-date-tests.
---
 gnu/packages/mail.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 4e273a0da..96b53c5bd 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -618,6 +618,13 @@ 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
+           ;; time saving (DST).  See: https://github.com/djcb/mu/issues/1214.
+           (lambda _
+             (substitute* "lib/parser/test-utils.cc"
+               (("\\* 60 \\* 60, 1 },")
+                "* 60 * 60, 3600 + 1 },"))))
          (add-before 'install 'fix-ffi
            (lambda* (#:key outputs #:allow-other-keys)
              (substitute* "guile/mu.scm"
-- 
2.16.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-29  0:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-28  2:04 [bug#30968] [PATCH] gnu: mu: Fix tests failures triggered by DST Maxim Cournoyer
2018-03-28 15:14 ` bug#30968: " Ludovic Courtès
2018-03-29  0:37   ` [bug#30968] " Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).