File: tests-Skip-debugcontroller-test.patch

package info (click to toggle)
glib2.0 2.84.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 66,112 kB
  • sloc: ansic: 538,924; python: 9,661; sh: 1,612; xml: 1,482; perl: 1,222; cpp: 535; makefile: 321; javascript: 11
file content (28 lines) | stat: -rw-r--r-- 908 bytes parent folder | download | duplicates (5)
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
27
28
From: Simon McVittie <smcv@debian.org>
Date: Tue, 15 Feb 2022 20:42:53 +0000
Subject: tests: Skip debugcontroller test

This is known to be flaky upstream.

Forwarded: not-needed
---
 gio/tests/debugcontroller.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gio/tests/debugcontroller.c b/gio/tests/debugcontroller.c
index c5cb7a5..2b661fe 100644
--- a/gio/tests/debugcontroller.c
+++ b/gio/tests/debugcontroller.c
@@ -192,6 +192,12 @@ test_dbus_properties (void)
 
   g_test_summary ("Test getting and setting properties on a #GDebugControllerDBus.");
 
+  if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL)
+    {
+      g_test_skip ("https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102");
+      return;
+    }
+
   /* Set up a test session bus and connection. Set up a separate second
    * connection to simulate a remote peer. */
   bus = g_test_dbus_new (G_TEST_DBUS_NONE);