File: test-ssh-agent-process-Don-t-run-this-test-by-default.patch

package info (click to toggle)
gcr4 4.4.0.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,308 kB
  • sloc: ansic: 62,525; sh: 240; makefile: 60; xml: 27; javascript: 5
file content (27 lines) | stat: -rw-r--r-- 868 bytes parent folder | download
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
From: Simon McVittie <smcv@debian.org>
Date: Sun, 31 Aug 2025 17:43:04 +0100
Subject: test-ssh-agent-process: Don't run this test by default

It has been observed to fail with an apparent race condition.

Bug-Debian: https://bugs.debian.org/1112662
---
 gcr/test-ssh-agent-process.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gcr/test-ssh-agent-process.c b/gcr/test-ssh-agent-process.c
index 8e6050e..2aa2fd5 100644
--- a/gcr/test-ssh-agent-process.c
+++ b/gcr/test-ssh-agent-process.c
@@ -207,6 +207,11 @@ test_restart (Test *test, gconstpointer unused)
 int
 main (int argc, char **argv)
 {
+	if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL) {
+		g_print ("1..0 # SKIP - https://bugs.debian.org/1112662\n");
+		return 0;
+	}
+
 	g_test_init (&argc, &argv, NULL);
 
 	g_test_add ("/ssh-agent/process/connect", Test, NULL, setup, test_connect, teardown);