Add patch to work around a test failure on riscv64
authorSimon McVittie <smcv@debian.org>
Tue, 22 Aug 2023 11:07:38 +0000 (12:07 +0100)
committerSimon McVittie <smcv@debian.org>
Tue, 22 Aug 2023 14:02:33 +0000 (15:02 +0100)
Other architectures are occasionally affected by this.

Thanks: Aurelien Jarno
Closes: #1049434
debian/patches/debian/tests-Allow-longer-for-a-dialog-to-open.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/debian/tests-Allow-longer-for-a-dialog-to-open.patch b/debian/patches/debian/tests-Allow-longer-for-a-dialog-to-open.patch
new file mode 100644 (file)
index 0000000..a01286c
--- /dev/null
@@ -0,0 +1,26 @@
+From: Simon McVittie <smcv@debian.org>
+Date: Tue, 22 Aug 2023 12:05:31 +0100
+Subject: tests: Allow longer for a dialog to open
+
+This hopefully makes the test pass more reliably, especially on riscv64.
+
+Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/6050
+Bug-Debian: https://bugs.debian.org/1049434
+Forwarded: no, workaround
+---
+ testsuite/gtk/templates.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/testsuite/gtk/templates.c b/testsuite/gtk/templates.c
+index cf038e6..4bd4e26 100644
+--- a/testsuite/gtk/templates.c
++++ b/testsuite/gtk/templates.c
+@@ -41,7 +41,7 @@ show_and_wait (GtkWidget *widget)
+ {
+   gboolean done = FALSE;
+-  g_timeout_add (500, main_loop_quit_cb, &done);
++  g_timeout_add (1500, main_loop_quit_cb, &done);
+   gtk_widget_set_visible (widget, TRUE);
+   while (!done)
+     g_main_context_iteration (NULL, FALSE);
index e7880ccb3d3ba20352ecaa75ce311040fc40df51..cd5302f2104890d699c014ec9760e42c7da0b815 100644 (file)
@@ -12,3 +12,4 @@ debian/gstreamer-player-1.0-Do-not-install-it-if-it-s-a-subproje.patch
 debian/media-Use-gstplayer-from-meson-subproject.patch
 debian/gstreamer-player-Use-GtkName-Prefix-to-avoid-issues-if-ac.patch
 debian/tests-Mark-gltexture-as-expected-to-fail-on-big-endian-ma.patch
+debian/tests-Allow-longer-for-a-dialog-to-open.patch