File: skip-tls_interaction-test.patch

package info (click to toggle)
libsoup2.4 2.74.3-10.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 7,236 kB
  • sloc: ansic: 57,709; xml: 1,392; python: 84; php: 75; javascript: 64; sh: 49; makefile: 28
file content (30 lines) | stat: -rw-r--r-- 962 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 501c347..a11356d 100644
--- a/tests/ssl-test.c
+++ b/tests/ssl-test.c
@@ -370,6 +370,11 @@ do_tls_interaction_test (void)
 
 	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;
+	}
+
 	service = g_threaded_socket_service_new (1);
 	address = g_inet_socket_address_new_from_string ("127.0.0.1", 0);
 	g_socket_listener_add_address (G_SOCKET_LISTENER (service), address,