From: Simon McVittie Date: Tue, 22 Aug 2023 11:07:38 +0000 (+0100) Subject: Add patch to work around a test failure on riscv64 X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~42 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=89bca91c43df5edd8444dbc280e99882593e2b1a;p=gtk4.git Add patch to work around a test failure on riscv64 Other architectures are occasionally affected by this. Thanks: Aurelien Jarno Closes: #1049434 --- 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 index 0000000000..a01286c106 --- /dev/null +++ b/debian/patches/debian/tests-Allow-longer-for-a-dialog-to-open.patch @@ -0,0 +1,26 @@ +From: Simon McVittie +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); diff --git a/debian/patches/series b/debian/patches/series index e7880ccb3d..cd5302f210 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -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