guix-commits
[Top][All Lists]
Advanced

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

02/03: gnu: glib-next: Disable failing tests on the Hurd.


From: guix-commits
Subject: 02/03: gnu: glib-next: Disable failing tests on the Hurd.
Date: Thu, 14 Sep 2023 17:54:13 -0400 (EDT)

janneke pushed a commit to branch master
in repository guix.

commit 1d5f1a5462491bf877999525466fb83c55e7e66d
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Thu Sep 14 19:14:21 2023 +0200

    gnu: glib-next: Disable failing tests on the Hurd.
    
    * gnu/packages/glib.scm (glib-next)[arguments]: In phase `disable-tests',
    disable four extra failing tests when building on the Hurd.
---
 gnu/packages/glib.scm | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index e2a0bbdcdf..b5eb4602da 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -532,7 +532,21 @@ functions for strings and common data structures.")
                             (string-append "//" all "\n"))
                            (("^  g_assert_cmpfloat \\(elapsed, ==.*" all)
                             (string-append "//" all "\n"))))
-                       '())))))))
+                       '())
+              #$@(if (system-hurd?)
+                     '((with-directory-excursion "gio/tests"
+                         ;; FAIL
+                         (substitute* '("appmonitor.c"
+                                        "gdbus-server-auth.c"
+                                        "live-g-file.c"
+                                        "socket.c")
+                           (("return (g_test_run|session_bus_run)" all call)
+                            (string-append "return 0;// " call))
+                           ((" (ret|rtv|result) = (g_test_run|session_bus_run)"
+                             all var call)
+                            (string-append " " var " = 0;// " call))
+                           (("[ \t]*g_test_add_func.*;") ""))))
+                     '())))))))
     (native-inputs
      (modify-inputs (package-native-inputs glib)
        (append desktop-file-utils)))



reply via email to

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