[Privoxy-commits] [privoxy] 02/02: tests/cts: quote % in skip-reasons and manifest.
User Git
git at git.privoxy.org
Fri Jan 17 20:34:52 CET 2025
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 3961d54e07a2cc28c6c33913cf53d222f4d28b36
Author: Roland Rosenfeld <roland at debian.org>
AuthorDate: Fri Jan 17 20:31:32 2025 +0100
tests/cts: quote % in skip-reasons and manifest.
curl testsuite runtests.pl uses the skip reason as sprintf() template.
So we have to quote % as %% in the skip reasons, otherwise runtests.pl
writes the following errors on stderr:
Invalid conversion in sprintf: "%{" at ./runtests.pl line 3904.
Invalid conversion in sprintf: "%H" at ./runtests.pl line 3904.
Invalid conversion in sprintf: "%H" at ./runtests.pl line 3904.
Invalid conversion in sprintf: "%H" at ./runtests.pl line 3904.
---
tests/cts/curl-test-manifest-for-privoxy | 4 ++--
tests/cts/gen-skip-reasons.pl | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/cts/curl-test-manifest-for-privoxy b/tests/cts/curl-test-manifest-for-privoxy
index 1c43948c..a8e920fe 100644
--- a/tests/cts/curl-test-manifest-for-privoxy
+++ b/tests/cts/curl-test-manifest-for-privoxy
@@ -50,7 +50,7 @@ test:1933: Known to fail. Modified signature in Authorization header. Needs inve
test:2032, 2033: Known to fail due to a limitation of the test which doesn't properly deal with interleaved output from two parallel connections
test:2049, 2052, 2053, 2054: Uses --connect-to. Need investigating.
test:207: Expected to fail. Test doesn't handle Privoxy's error message. Privoxy doesn't behave correctly, though.
-test:2082, 2084, 2085: Known to fail. Uses %HTTPPORT and does not expect Privoxy's port but the remote one.
+test:2082, 2084, 2085: Known to fail. Uses %%HTTPPORT and does not expect Privoxy's port but the remote one.
test:2100: Known to fail. Use DNS-over-HTTP.
test:260: Known to fail. Looks like a curl bug. The URL passed to Privoxy is invalid but the test expect a valid one when not using a proxy
test:262: Not supposed to work with Privoxy. Privoxy doesn't support nul bytes in headers and neither does the spec.
@@ -63,7 +63,7 @@ test:339, 347, 1591: Chunked transfer with trailers which Privoxy does not under
test:389: Known to fail depending on the DNS resolver on the system as Privoxy does not implement RFC6761 internally.
test:412, 413: Known to fail as curl is tunneling the request even though it's vanilla HTTP.
test:415: Known to fail. Control code in Content-Length header.
-test:435: Expected to fail. Uses %{remote_port} and expects the port of the server and not the one from Privoxy.
+test:435: Expected to fail. Uses %%{remote_port} and expects the port of the server and not the one from Privoxy.
test:46: Invalid URL and use of --resolv.
test:501: Not relevant for a proxy.
test:507: Expected to fail. DNS failures cause a Privoxy error message the test doesn't handle.
diff --git a/tests/cts/gen-skip-reasons.pl b/tests/cts/gen-skip-reasons.pl
index 1eaca529..bd448d7b 100755
--- a/tests/cts/gen-skip-reasons.pl
+++ b/tests/cts/gen-skip-reasons.pl
@@ -157,6 +157,7 @@ sub main() {
}
next unless defined $why;
+ $why =~ s/%/%%/g; # quote %, since this is used in sprintf() format string
if (exists $related_tests{$why}) {
$related_tests{$why} = $related_tests{$why} . ", $testnum";
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list