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);
