File: skip-tls_interaction-test.patch

package info (click to toggle)
libsoup3 3.6.5-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,316 kB
  • sloc: ansic: 61,968; python: 202; xml: 97; sh: 84; makefile: 33; javascript: 5
file content (30 lines) | stat: -rw-r--r-- 974 bytes parent folder | download | duplicates (2)
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
29
30
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 75d87cc..221ea9c 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);