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

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

* gnu/packages/julia-xyz.scm (julia-forwarddiff)[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 6638ecf726..8c37b0bf23 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -1801,6 +1801,14 @@ (define-public julia-forwarddiff
        (sha256
         (base32 "1vb46x8mcn61g1l14qrk22c043khg2ml4q1ci7h4k2v34f2ak5fs"))))
     (build-system julia-build-system)
+    (arguments
+     ;; XXXX: Unexpected and non-deterministic failures for i686, e.g.,
+     ;; Expression: dual_isapprox(FDNUM ^ PRIMAL, exp(PRIMAL * log(FDNUM)))
+     ;; ERROR: LoadError: LoadError: There was an error during testing
+     ;; Disable as stopgap.
+     `(#:tests? ,(if (string-prefix? "i686" (or (%current-target-system)
+                                                (%current-system)))
+                     #f #t)))
     (inputs                             ;required for tests
      `(("julia-calculus" ,julia-calculus)
        ("julia-difftests" ,julia-difftests)))
-- 
2.32.0