File: Skip-memory-monitor-dbus-test-if-not-specifically-request.patch

package info (click to toggle)
glib2.0 2.85.4-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 66,256 kB
  • sloc: ansic: 544,055; python: 9,702; sh: 1,612; xml: 1,482; perl: 1,222; cpp: 535; makefile: 321; javascript: 11
file content (25 lines) | stat: -rw-r--r-- 864 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
From: Simon McVittie <smcv@debian.org>
Date: Sun, 24 Oct 2021 22:38:20 +0100
Subject: Skip memory-monitor-dbus test if not specifically requested

This seems to be unreliable, particularly on non-x86.

Bug-Debian: https://bugs.debian.org/995178
Forwarded: no
---
 gio/tests/memory-monitor-dbus.py.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gio/tests/memory-monitor-dbus.py.in b/gio/tests/memory-monitor-dbus.py.in
index 7aae01e..1ee2a05 100755
--- a/gio/tests/memory-monitor-dbus.py.in
+++ b/gio/tests/memory-monitor-dbus.py.in
@@ -38,6 +38,8 @@ try:
             klass.start_system_bus()
             klass.dbus_con = klass.get_dbus(True)
 
+        @unittest.skipIf('DEB_ALLOW_FLAKY_TESTS' not in os.environ,
+                         'https://bugs.debian.org/995178')
         def setUp(self):
             try:
                 Gio.MemoryMonitor