File: tests-Allow-longer-for-a-dialog-to-open.patch

package info (click to toggle)
gtk4 4.20.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180,184 kB
  • sloc: ansic: 778,064; xml: 3,092; javascript: 3,054; python: 1,911; java: 752; sh: 682; makefile: 314; perl: 162; cpp: 21
file content (26 lines) | stat: -rw-r--r-- 861 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);