gnu: grep: Skip 'triple-backref' test.

* gnu/packages/base.scm (grep)[arguments]: Add
'skip-triple-backref-test' phase for GNU/Hurd.
This commit is contained in:
Ludovic Courtès 2022-11-23 19:31:12 +01:00
parent 2b151eb286
commit 02a4e54250
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -130,7 +130,19 @@ (define-public grep
(substitute* (list (string-append bin "/egrep") (substitute* (list (string-append bin "/egrep")
(string-append bin "/fgrep")) (string-append bin "/fgrep"))
(("^exec grep") (("^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?) #:make-flags ,(if (hurd-target?)
''("XFAIL_TESTS=test-perror2 equiv-classes") ;XXX ''("XFAIL_TESTS=test-perror2 equiv-classes") ;XXX
''()))) ''())))