efraim pushed a commit to branch wip-riscv
in repository guix.

commit 1b49c3d76c34b3852008d0ca20293881497a7231
Author: Efraim Flashner <[email protected]>
AuthorDate: Tue Aug 31 13:38:20 2021 +0300

    gnu: php: Skip tests failing on riscv64-linux.
    
    * gnu/packages/php.scm (php)[arguments]: Adjust custom 'prepare-tests
    phase to delete some tests when building for riscv64-linux.
---
 gnu/packages/php.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/php.scm b/gnu/packages/php.scm
index fcdc1a3..db8a0bd 100644
--- a/gnu/packages/php.scm
+++ b/gnu/packages/php.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2018 Ricardo Wurmus <[email protected]>
 ;;; Copyright © 2019 Oleg Pykhalov <[email protected]>
 ;;; Copyright © 2020 Maxim Cournoyer <[email protected]>
+;;; Copyright © 2021 Efraim Flashner <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -197,6 +198,14 @@
                                 "sapi/cli/tests/upload_2G.phpt"
                                 "Zend/tests/concat_003.phpt")))
                    '())
+             ,@(if (target-riscv64?)
+                 ;; Drop tests known to fail on riscv64.
+                 '((for-each delete-file
+                             (list
+                               ;; extensive backtracking
+                               "ext/fileinfo/tests/cve-2014-3538-nojit.phpt"
+                               "ext/fileinfo/tests/cve-2014-3538.phpt")))
+                 '())
 
              ,@(if (target-ppc64le?)
                    ;; Drop tests known to fail on powerpc64le.

Reply via email to