public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kamil Dudka <kdudka@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.23.0-3: prevent test-suite failure due to using non-default port ranges in tests
Date: Tue, 03 Nov 2026 12:35:05 GMT	[thread overview]
Message-ID: <179370930544.1.5207188285163621768.rpms-curl-b7ba0b7452bd@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/curl
Branch : curl-v8.23.0-3
Commit : b7ba0b7452bd23f205a4dc2fa26c42d76221a640
Author : Kamil Dudka <kdudka@redhat.com>
Date   : 2013-04-12T14:51:13+02:00
Stats  : +137/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/b7ba0b7452bd23f205a4dc2fa26c42d76221a640?branch=curl-v8.23.0-3

Log:
prevent test-suite failure due to using non-default port ranges in tests

---
diff --git a/0109-curl-7.30.0-tests-port-range.patch b/0109-curl-7.30.0-tests-port-range.patch
new file mode 100644
index 0000000..e6047d9
--- /dev/null
+++ b/0109-curl-7.30.0-tests-port-range.patch
@@ -0,0 +1,131 @@
+From c5c7d61620e1d9ebd039b9931898635659a0a356 Mon Sep 17 00:00:00 2001
+From: Kamil Dudka <kdudka@redhat.com>
+Date: Fri, 12 Apr 2013 14:13:42 +0200
+Subject: [PATCH] tests: prevent test206, test1060, and test1061 from failing
+
+... in case runtests.pl is invoked with non-default -b option
+
+Fixes a regression caused by 1e29d275c643ef6aab7948f0f55a7a9397e56b42.
+
+[upstream commit ddbda328b37eb4b5f43fbd1dd8248c301fd2b30e]
+---
+ tests/data/test1060 |   14 +++++++-------
+ tests/data/test1061 |   14 +++++++-------
+ tests/data/test206  |   14 +++++++-------
+ 3 files changed, 21 insertions(+), 21 deletions(-)
+
+diff --git a/tests/data/test1060 b/tests/data/test1060
+index da1be78..e303a89 100644
+--- a/tests/data/test1060
++++ b/tests/data/test1060
+@@ -874,7 +874,7 @@ crypto
+ HTTP proxy CONNECT auth Digest, large headers and data
+  </name>
+  <command>
+-http://test.remote.haxx.se.1060:%HTTPPORT/path/10600002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel
++http://test.remote.haxx.se.1060:8990/path/10600002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel
+ </command>
+ </client>
+ 
+@@ -884,17 +884,17 @@ http://test.remote.haxx.se.1060:%HTTPPORT/path/10600002 --proxy http://%HOSTIP:%
+ ^User-Agent: curl/.*
+ </strip>
+ <protocol>
+-CONNECT test.remote.haxx.se.1060:%HTTPPORT HTTP/1.1
+-Host: test.remote.haxx.se.1060:%HTTPPORT
++CONNECT test.remote.haxx.se.1060:8990 HTTP/1.1
++Host: test.remote.haxx.se.1060:8990
+ Proxy-Connection: Keep-Alive
+ 
+-CONNECT test.remote.haxx.se.1060:%HTTPPORT HTTP/1.1
+-Host: test.remote.haxx.se.1060:%HTTPPORT
+-Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se.1060:%HTTPPORT", response="e1fbed39c26f4efe284adc0e576ff638"
++CONNECT test.remote.haxx.se.1060:8990 HTTP/1.1
++Host: test.remote.haxx.se.1060:8990
++Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se.1060:8990", response="e1fbed39c26f4efe284adc0e576ff638"
+ Proxy-Connection: Keep-Alive
+ 
+ GET /path/10600002 HTTP/1.1
+-Host: test.remote.haxx.se.1060:%HTTPPORT
++Host: test.remote.haxx.se.1060:8990
+ Accept: */*
+ 
+ </protocol>
+diff --git a/tests/data/test1061 b/tests/data/test1061
+index 05c3209..a1d7286 100644
+--- a/tests/data/test1061
++++ b/tests/data/test1061
+@@ -879,7 +879,7 @@ crypto
+ HTTP proxy CONNECT auth Digest, large headers and chunked data
+  </name>
+  <command>
+-http://test.remote.haxx.se.1061:%HTTPPORT/path/10610002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel
++http://test.remote.haxx.se.1061:8990/path/10610002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel
+ </command>
+ </client>
+ 
+@@ -889,17 +889,17 @@ http://test.remote.haxx.se.1061:%HTTPPORT/path/10610002 --proxy http://%HOSTIP:%
+ ^User-Agent: curl/.*
+ </strip>
+ <protocol>
+-CONNECT test.remote.haxx.se.1061:%HTTPPORT HTTP/1.1
+-Host: test.remote.haxx.se.1061:%HTTPPORT
++CONNECT test.remote.haxx.se.1061:8990 HTTP/1.1
++Host: test.remote.haxx.se.1061:8990
+ Proxy-Connection: Keep-Alive
+ 
+-CONNECT test.remote.haxx.se.1061:%HTTPPORT HTTP/1.1
+-Host: test.remote.haxx.se.1061:%HTTPPORT
+-Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se.1061:%HTTPPORT", response="4e23449fa93224834299e7282a70472c"
++CONNECT test.remote.haxx.se.1061:8990 HTTP/1.1
++Host: test.remote.haxx.se.1061:8990
++Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se.1061:8990", response="4e23449fa93224834299e7282a70472c"
+ Proxy-Connection: Keep-Alive
+ 
+ GET /path/10610002 HTTP/1.1
+-Host: test.remote.haxx.se.1061:%HTTPPORT
++Host: test.remote.haxx.se.1061:8990
+ Accept: */*
+ 
+ </protocol>
+diff --git a/tests/data/test206 b/tests/data/test206
+index 3ddc1d9..902d0a6 100644
+--- a/tests/data/test206
++++ b/tests/data/test206
+@@ -77,7 +77,7 @@ crypto
+ HTTP proxy CONNECT auth Digest
+  </name>
+  <command>
+-http://test.remote.haxx.se.206:%HTTPPORT/path/2060002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel
++http://test.remote.haxx.se.206:8990/path/2060002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel
+ </command>
+ </client>
+ 
+@@ -87,18 +87,18 @@ http://test.remote.haxx.se.206:%HTTPPORT/path/2060002 --proxy http://%HOSTIP:%HT
+ ^User-Agent: curl/.*
+ </strip>
+ <protocol>
+-CONNECT test.remote.haxx.se.206:%HTTPPORT HTTP/1.1
+-Host: test.remote.haxx.se.206:%HTTPPORT
++CONNECT test.remote.haxx.se.206:8990 HTTP/1.1
++Host: test.remote.haxx.se.206:8990
+ Proxy-Connection: Keep-Alive
+ 
+-CONNECT test.remote.haxx.se.206:%HTTPPORT HTTP/1.1
+-Host: test.remote.haxx.se.206:%HTTPPORT
+-Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se.206:%HTTPPORT", response="003e36decb4dbf6366b3ecb9b87c24ec"
++CONNECT test.remote.haxx.se.206:8990 HTTP/1.1
++Host: test.remote.haxx.se.206:8990
++Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se.206:8990", response="003e36decb4dbf6366b3ecb9b87c24ec"
+ Proxy-Connection: Keep-Alive
+ 
+ GET /path/2060002 HTTP/1.1
+ User-Agent: curl/7.12.3-CVS (i686-pc-linux-gnu) libcurl/7.12.3-CVS OpenSSL/0.9.6b zlib/1.1.4
+-Host: test.remote.haxx.se.206:%HTTPPORT
++Host: test.remote.haxx.se.206:8990
+ Accept: */*
+ 
+ [DISCONNECT]
+-- 
+1.7.1
+

diff --git a/curl.spec b/curl.spec
index 8f1d47f..bfdf7bd 100644
--- a/curl.spec
+++ b/curl.spec
@@ -26,6 +26,9 @@ Patch107: 0107-curl-7.21.4-libidn-valgrind.patch
 # a simple iconv can't fix them
 Patch108: 0108-curl-7.30.0-utf8.patch
 
+# prevent test-suite failure due to using non-default port ranges in tests
+Patch109: 0109-curl-7.30.0-tests-port-range.patch
+
 Provides: webclient
 URL: http://curl.haxx.se/
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
@@ -114,6 +117,8 @@ cd tests/data/
 sed -i s/899\\\([0-9]\\\)/%{?__isa_bits}9\\1/ test*
 cd -
 
+%patch109 -p1
+
 # disable test 1112 (#565305)
 printf "1112\n" >> tests/data/DISABLED
 
@@ -219,6 +224,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Fri Apr 12 2013 Kamil Dudka <kdudka@redhat.com> 7.30.0-1
 - new upstream release (fixes CVE-2013-1944)
+- prevent test-suite failure due to using non-default port ranges in tests
 
 * Tue Mar 12 2013 Kamil Dudka <kdudka@redhat.com> 7.29.0-4
 - do not ignore poll() failures other than EINTR (#919127)

                 reply	other threads:[~2026-11-03 12:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179370930544.1.5207188285163621768.rpms-curl-b7ba0b7452bd@fedoraproject.org \
    --to=kdudka@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox