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

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

It intermittently gets stuck until a timeout is reached.

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

diff --git a/gcr/test-ssh-agent-service.c b/gcr/test-ssh-agent-service.c
index 47bfa83..8a7cb0b 100644
--- a/gcr/test-ssh-agent-service.c
+++ b/gcr/test-ssh-agent-service.c
@@ -598,6 +598,11 @@ test_lock (Test *test, gconstpointer unused)
 int
 main (int argc, char **argv)
 {
+	if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL) {
+		g_print ("1..0 # SKIP - frequently times out, https://bugs.debian.org/1112659\n");
+		return 0;
+	}
+
 	g_test_init (&argc, &argv, NULL);
 
 	g_test_add ("/ssh-agent/service/startup_shutdown", Test, NULL, setup, test_startup_shutdown, teardown);