tests: Allow longer for a dialog to open
authorSimon McVittie <smcv@debian.org>
Tue, 22 Aug 2023 11:05:31 +0000 (12:05 +0100)
committerAmin Bandali <bandali@ubuntu.com>
Wed, 4 Oct 2023 20:11:12 +0000 (21:11 +0100)
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

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-Allow-longer-for-a-dialog-to-open.patch

testsuite/gtk/templates.c

index cf038e6fd1cd4ca723b16c7ded7d59869a97a9fb..4bd4e265d4153b6ab012c99eda57fc0807a4f477 100644 (file)
@@ -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);