gnu: grep: Skip 'triple-backref' test.
authorLudovic Courtès <ludo@gnu.org>
Wed, 23 Nov 2022 18:31:12 +0000 (19:31 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 23 Nov 2022 18:34:42 +0000 (19:34 +0100)
* gnu/packages/base.scm (grep)[arguments]: Add
'skip-triple-backref-test' phase for GNU/Hurd.

gnu/packages/base.scm

index bf64355..36b27a4 100644 (file)
@@ -130,7 +130,19 @@ command-line arguments, multiple languages, and so on.")
               (substitute* (list (string-append bin "/egrep")
                                  (string-append bin "/fgrep"))
                 (("^exec grep")
-                 (string-append "exec " bin "/grep")))))))
+                 (string-append "exec " bin "/grep"))))))
+        ,@(if (hurd-target?)
+              '((add-before 'check 'skip-triple-backref-test
+                  (lambda _
+                    ;; This test is marked as malfunctioning on glibc systems
+                    ;; due to
+                    ;; <https://sourceware.org/bugzilla/show_bug.cgi?id=11053>
+                    ;; and it triggers a segfault with glibc 2.33 on GNU/Hurd.
+                    ;; Skip it.
+                    (substitute* "tests/triple-backref"
+                      (("^warn_" all)
+                       (string-append "exit 77\n" all))))))
+              '()))
       #:make-flags ,(if (hurd-target?)
                         ''("XFAIL_TESTS=test-perror2 equiv-classes") ;XXX
                         ''())))