guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

12/17: gnu: julia-intervalsets: Fix tests on i686-linux.


From: guix-commits
Subject: 12/17: gnu: julia-intervalsets: Fix tests on i686-linux.
Date: Sat, 4 Dec 2021 12:54:07 -0500 (EST)

efraim pushed a commit to branch core-updates-frozen
in repository guix.

commit 828012ed9f57f4bce6ce75ffd118f58a789d928d
Author: zimoun <zimon.toutoune@gmail.com>
AuthorDate: Wed Dec 1 16:54:37 2021 +0100

    gnu: julia-intervalsets: Fix tests on i686-linux.
    
    * gnu/packages/julia-xyz.scm (julia-intervalsets)[arguments]<#:phases>:
    Conditionally disable the failing test.
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/julia-xyz.scm | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index faa1fcd..af07953 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -2621,6 +2621,20 @@ and exceptional performance.")
         (sha256
          (base32 "0gsz89cd3iygbl5qr389k9vwpg7w1nk0s90g25nsmk34y9hifxag"))))
     (build-system julia-build-system)
+    (arguments
+     `(#:phases
+       ,@(if (target-x86-32?)
+           '((modify-phases %standard-phases
+               (add-after 'unpack 'remove-failing-test-i686
+                 (lambda _
+                   (substitute* "test/runtests.jl"
+                     ;; For some reason, the output is correct but the test
+                     ;; is considered as failed:
+                     ;; Expression: duration(ClosedInterval(A, B)) ≡ 60
+                     ;; Evaluated: 60 ≡ 60
+                     (("@test duration\\(ClosedInterval")
+                      "@test_broken duration(ClosedInterval"))))))
+           '(%standard-phases))))
     (propagated-inputs
      `(("julia-ellipsisnotation" ,julia-ellipsisnotation)))
     (native-inputs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]