all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 30968@debbugs.gnu.org
Subject: [bug#30968] [PATCH] gnu: mu: Fix tests failures triggered by DST.
Date: Tue, 27 Mar 2018 22:04:01 -0400	[thread overview]
Message-ID: <87bmf9552m.fsf@gmail.com> (raw)

[-- 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


             reply	other threads:[~2018-03-28  2:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-28  2:04 Maxim Cournoyer [this message]
2018-03-28 15:14 ` bug#30968: [PATCH] gnu: mu: Fix tests failures triggered by DST Ludovic Courtès
2018-03-29  0:37   ` [bug#30968] " Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bmf9552m.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=30968@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.