guix-commits
[Top][All Lists]
Advanced

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

02/04: gnu: guile: Skip 'test-stack-overflow'.


From: guix-commits
Subject: 02/04: gnu: guile: Skip 'test-stack-overflow'.
Date: Wed, 7 Jul 2021 18:29:43 -0400 (EDT)

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

commit 285f3b58c6665ea9e347f5a5df1fc26fe49dc7bb
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Jul 7 18:59:46 2021 +0200

    gnu: guile: Skip 'test-stack-overflow'.
    
    * gnu/packages/guile.scm (guile-3.0)[arguments]: Add
    'disable-stack-overflow-test' phase.
---
 gnu/packages/guile.scm | 40 ++++++++++++++++++++++++----------------
 1 file changed, 24 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 0012d91..c8cdfbe 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -324,22 +324,30 @@ without requiring the source code to be rewritten.")
               `(cons "--disable-jit" ,flags)
               flags)))
        ((#:phases phases)
-         (if (string-prefix? "powerpc-" (%current-system))
-           `(modify-phases ,phases
-              (add-after 'unpack 'adjust-bootstrap-flags
-                (lambda _
-                  ;; Upstream knows about suggested solution.
-                  ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45214
-                  (substitute* "bootstrap/Makefile.in"
-                    (("^GUILE_OPTIMIZATIONS.*")
-                     "GUILE_OPTIMIZATIONS = -O1 -Oresolve-primitives 
-Ocps\n"))))
-              (add-after 'unpack 'skip-failing-fdes-test
-                (lambda _
-                  ;; ERROR: ((system-error "seek" "~A" ("Bad file descriptor") 
(9)))
-                  (substitute* "test-suite/tests/ports.test"
-                    (("fdes not closed\"" all) (string-append all "(exit 
77)")))
-                  #t)))
-           phases))))
+        `(modify-phases ,phases
+           (add-before 'check 'disable-stack-overflow-test
+             (lambda _
+               ;; This test can invoke the "OOM killer", especially when
+               ;; running on emulated hardware (QEMU).  Skip it.
+               (substitute* "test-suite/standalone/test-stack-overflow"
+                 (("!#")
+                  "!#\n(exit 77)\n"))))
+
+           ,@(if (string-prefix? "powerpc-" (%current-system))
+                 `((add-after 'unpack 'adjust-bootstrap-flags
+                     (lambda _
+                       ;; Upstream knows about suggested solution.
+                       ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45214
+                       (substitute* "bootstrap/Makefile.in"
+                         (("^GUILE_OPTIMIZATIONS.*")
+                          "GUILE_OPTIMIZATIONS = -O1 -Oresolve-primitives 
-Ocps\n"))))
+                   (add-after 'unpack 'skip-failing-fdes-test
+                     (lambda _
+                       ;; ERROR: ((system-error "seek" "~A" ("Bad file 
descriptor") (9)))
+                       (substitute* "test-suite/tests/ports.test"
+                         (("fdes not closed\"" all) (string-append all "(exit 
77)")))
+                       #t)))
+                 '())))))
 
     (native-search-paths
      (list (search-path-specification



reply via email to

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