Subject: [PATCH v2] gnu: gtk+-2: Disable UI tests on aarch64.

From: Jonathan Frederickson <[email-masked]>
Date: Mon, 19 Aug 2024 19:44:11 -0400

* gnu/packages/gtk.scm (gtk+-2): Disable ui-tests on aarch64. They seem to be
flaky on aarch64, and I haven't been able to get the package to build without
this change.

Change-Id: I5aa5a89a2874ad1c737cba16c3aaeedced606de3
---
 gnu/packages/gtk.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index 04183fa806..667e0d4dbf 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -980,6 +980,12 @@ (define-public gtk+-2
                 (("g_test_add_func \\(\"/recent-manager.*;") ""))
               (substitute* "gtk/tests/defaultvalue.c"
                 (("return g_test_run\\(\\);") ""))
+              ;; UI tests seem to be flaky on aarch64
+              #$@(if (string=? (%current-system) "aarch64-linux")
+                     (list
+                      #~(substitute* "gtk/tests/testing.c"
+                          (("g_test_add_func \\(\"/ui-tests.*;") "")))
+                     #~())
               ;; These require XPM support in Gdk-Pixbuf which is obsolete.
               (substitute* "gtk/tests/textbuffer.c"
                 (("g_test_add_func.*test_fill_empty\\);")

base-commit: b20956651a53a8f23828fdeb6945e1a31e6997a8
-- 
2.45.2