File: disable-flaky-tests.patch

package info (click to toggle)
wget2 2.2.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,296 kB
  • sloc: ansic: 121,144; sh: 11,559; makefile: 878; xml: 182; sed: 16
file content (43 lines) | stat: -rw-r--r-- 986 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
31
32
33
34
35
36
37
38
39
40
41
42
43
Description: Disable flaky tests.
 These tests fail with libproxy enabled (in some environments).
Author: Shengqi Chen <harry@debian.org>
Forwarded: not-needed
Last-Update: 2025-03-02
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/tests/test-idn-cmd.c
+++ b/tests/test-idn-cmd.c
@@ -39,6 +39,9 @@
 
 int main(void)
 {
+#if HAVE_LIBPROXY
+	return 0;
+#endif
 	wget_test_url_t urls[]={
 		{	.name = "http://" punycoded_hostname "/index.html",
 			.code = "200 Dontcare",
--- a/tests/test-idn-meta.c
+++ b/tests/test-idn-meta.c
@@ -39,6 +39,9 @@
 
 int main(void)
 {
+#if HAVE_LIBPROXY
+	return 0;
+#endif
 	wget_test_url_t urls[]={
 		{	.name = "http://start-here.com/start.html",
 			.code = "200 Dontcare",
--- a/tests/test-idn-robots.c
+++ b/tests/test-idn-robots.c
@@ -39,6 +39,9 @@
 
 int main(void)
 {
+#if HAVE_LIBPROXY
+	return 0;
+#endif
 	wget_test_url_t urls[]={
 		{	.name = "http://" punycoded_hostname "/index.html",
 			.code = "200 Dontcare",