Subject: [bug#52186] [core-updates-frozen PATCH v2 11/17] gnu: julia-reversediff: Disable tests on i686-linux.

From: zimoun <[email-masked]>
Date: Wed, 1 Dec 2021 16:54:36 +0100

* gnu/packages/julia-xyz (julia-reversediff)[arguments]<#:tests?>:
Conditionally disable tests.
---
 gnu/packages/julia-xyz.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index b7074c66ae..42f79e58c5 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -4090,6 +4090,14 @@ (define-public julia-reversediff
         (sha256
          (base32 "1wrr6sqj2xl9grkvdp88rw3manxy9vbx28zq2wssya5ns1xabsnl"))))
     (build-system julia-build-system)
+    (arguments
+     ;; XXXX: Test suite failing for i686, e.g.,
+     ;; Expression: hash(tr_float, hash(1)) === hash(v_float, hash(1))
+     ;; MethodError: no method matching decompose(::ReverseDiff.TrackedReal{Float64, Float64, Nothing})
+     ;; Disable as stopgap.
+     `(#:tests? ,(if (string-prefix? "i686" (or (%current-target-system)
+                                                (%current-system)))
+                     #f #t)))
     (propagated-inputs
      `(("julia-diffresults" ,julia-diffresults)
        ("julia-diffrules" ,julia-diffrules)
-- 
2.32.0