Subject: [bug#70098] [PATCH] gnu: gtk: Fix tests on aarch64.

From: Leo Nikkilä <[email-masked]>
Date: Sun, 31 Mar 2024 06:14:26 +0300

GTK tests are currently failing on aarch64 with:

    36/1521 gtk:gsk+gsk-compare+gsk-gl+gsk-compare-gl+wayland_gles_failing / gl big-checkerboard-scaled-down2                                              FAIL            0.37s   exit status 1
    37/1521 gtk:gsk+gsk-compare+gsk-gl+gsk-compare-gl+wayland_gles_failing+gsk-compare-flipped-gl / gl big-checkerboard-scaled-down2 flipped               FAIL            0.32s   exit status 1
    38/1521 gtk:gsk+gsk-compare+gsk-gl+gsk-compare-gl+wayland_gles_failing+gsk-compare-repeated-gl / gl big-checkerboard-scaled-down2 repeated             FAIL            0.25s   exit status 1
    39/1521 gtk:gsk+gsk-compare+gsk-gl+gsk-compare-gl+wayland_gles_failing+gsk-compare-rotated-gl / gl big-checkerboard-scaled-down2 rotated               FAIL            0.32s   exit status 1
    40/1521 gtk:gsk+gsk-compare+gsk-gl+gsk-compare-gl+wayland_gles_failing+gsk-compare-masked-gl / gl big-checkerboard-scaled-down2 masked                 FAIL            0.26s   exit status 1

Seems other distributions like Debian have disabled these tests due to
similar issues, although I'm unsure why they're also failing with the
X11 test setup.

* gnu/packages/gtk.scm (gtk)[arguments]<#:test-options>: Skip failing
tests like Debian.
---
 gnu/packages/gtk.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index 9252315fd2..da56834df6 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -1157,7 +1157,12 @@ (define-public gtk
                             "--no-suite=failing"
                             "--no-suite=flaky"
                             "--no-suite=headless" ; requires mutter…
-                            "--no-suite=gsk-compare-broadway")
+                            "--no-suite=gsk-compare-broadway"
+                            ;; These seem to fail on aarch64, and Debian has
+                            ;; also disabled these, see:
+                            ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050075
+                            "--no-suite=wayland_failing"
+                            "--no-suite=wayland_gles_failing")
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'generate-gdk-pixbuf-loaders-cache-file
-- 
2.41.0