mcst-linux-kernel/patches-2024.06.26/libsoup3-3.1.3/0001-skip-tls_interaction-t...

31 lines
974 B
Diff

From: Jeremy Bicha <jbicha@ubuntu.com>
Date: Mon, 8 Oct 2018 01:29:17 -0400
Subject: skip tls_interaction test
This test is too unreliable on Debian architectures
and this package is too critical to not get timely updates
[smcv: Allow running it anyway, by setting an environment variable]
Bug: https://gitlab.gnome.org/GNOME/libsoup/issues/120
---
tests/ssl-test.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/ssl-test.c b/tests/ssl-test.c
index 1f8fa0f..f5a06e8 100644
--- a/tests/ssl-test.c
+++ b/tests/ssl-test.c
@@ -170,6 +170,11 @@ do_tls_interaction_test (gconstpointer data)
SOUP_TEST_SKIP_IF_NO_TLS;
+ if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL) {
+ g_test_skip ("Not reliable? https://gitlab.gnome.org/GNOME/libsoup/issues/120");
+ return;
+ }
+
peer_uri = g_uri_parse_relative (uri, "/check-peer", SOUP_HTTP_URI_FLAGS, NULL);
session = soup_test_session_new (NULL);
tls_db = soup_session_get_tls_database (session);